Oleg Ivanov
Oleg Ivanov

Reputation: 303

How to remove onclick delay and keep the fast scrolling in mobile web application

I am developing a Web application on OS Android using PhoneGap. For a quick response from the user interface buttons, I use the following solution: http://code.google.com/intl/ro-RO/mobile/articles/fast_buttons.html The problem is that when I use this solution, scrolling slows down because the event handlers are attached to the following events: ontouchstart, ontouchend, ontouchmove. How to make a quick response from the buttons and keep the fast scrolling?

Upvotes: 5

Views: 760

Answers (1)

AVEbrahimi
AVEbrahimi

Reputation: 19144

Try executing codes in the events ( ontouchstart, ontouchend, ontouchmove,...) in another thread and post the results to main thread.

Upvotes: 1

Related Questions