如何删除onclick延迟并在移动Web应用程序中保持快速滚动

Ole*_*nov 5 mobile android scroll click delay

我正在使用PhoneGap在OS Android上开发Web应用程序.为了从用户界面按钮快速响应,我使用以下解决方案:http: //code.google.com/intl/ro-RO/mobile/articles/fast_buttons.html 问题是当我使用此解决方案时,滚动由于事件处理程序附加到以下事件,因此速度变慢:ontouchstart,ontouchend,ontouchmove.如何从按钮快速响应并保持快速滚动?

AVE*_*imi 1

尝试在另一个线程中执行事件(ontouchstart、ontouchend、ontouchmove...)中的代码并将结果发布到主线程。