'touchstart and touchend events does not work on Webview in Android
I have multiple webviews inside scrollview in Android. This is one of the prime requirement of my app. I am loading html with Javascript inside webviews. The Javascript contains a button which implements touchstart and touchend events. All my webviews are rendering fine. But the problem is few of the webviews does not fire touchstart and touchend events on the button. This is happening randomly with webviews. Also the links on those webviews are not tappable.
I have no idea why this is happening. Please suggest some solution.
Solution 1:[1]
Check out this answer: Android - JavaScript : touchstart event not fired until zoom or scroll the page
This got things working for me.
You might also want to check out the first answer here, regarding using e.preventDefault(): touchend event doesn't work on Android
Good luck!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Community |
