Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 487
Oleg Ivanov Avatar asked Nov 14 '22 11:11

Oleg Ivanov


1 Answers

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

like image 85
AVEbrahimi Avatar answered Nov 16 '22 02:11

AVEbrahimi