Saturday, 15 June 2019

Android webview touchmove bug

I am developing an Android WebView App and for some reason the "touchmove" event refuses to fire. It works fine on a desktop-browser. How can I fix it? Does not work on the android emulator either.

document.body.addEventListener("touchstart", function (e) {
    console.log("touchstart", e);
    e.preventDefault();
    e.stopPropagation();
});
document.body.addEventListener("touchmove", function (e) {
    console.log("touchmove", e); // <--- refuses to fire
    e.preventDefault();
    e.stopPropagation();
});
document.body.addEventListener("touchend", function (e) {
    console.log("touchend", e);
    e.preventDefault();
    e.stopPropagation();
});



from Android webview touchmove bug

No comments:

Post a Comment