Android WebView: Very laggy button response

后端 未结 4 2045
旧巷少年郎
旧巷少年郎 2020-12-29 13:49

I\'ve got a little web app that I made to play with Android\'s WebView functionality.

I\'ve got some divs that I use as buttons (with onclick attributes

4条回答
  •  心在旅途
    2020-12-29 14:30

    Basically, click events on mobile browsers are delayed by 300ms. Do you know of the fast button pattern? Basically you can use the touchstart event (which fires without delay).

    Here's a complete explanation: http://code.google.com/mobile/articles/fast_buttons.html

提交回复
热议问题