我正在使用PhoneGap在安卓操作系统上开发一个网络应用程序。为了从用户界面按钮快速响应,我使用以下解决方案:http://code.google.com/intl/ro-RO/mobile/articles/fast_buttons.html问题是,当我使用此解决方案时,滚动变慢,因为事件处理程序附加到以下事件: ontouchend _ slows、ontouchend_ the、ontouchend_ down。如何通过按钮进行快速响应,并保持快速滚动?
发布于 2012-01-26 15:36:09
尝试执行事件中的代码( ontouchstart,ontouchend,ontouchmove,...)在另一个线程中并将结果发布到主线程。
https://stackoverflow.com/questions/8913826
复制相似问题