Search code examples
javascriptandroidhtmldraggabledrag

Android web apps shockingly doesn't need additional drag to scroll scripts?


Fairly recently I've been trying to make my own web based android app and have been going crazy trying to find a working drag to scroll JavaScript but surprise, surprise, turns out I didn't need it. Because as long as the overflow parameters are not set to hidden, I could drag-scroll like crazy.

I'm very new to this web to app thing so can anyone explain why and how this works? Because I can't seem to find the right key words to find a documentation for it.


Solution

  • This is because of a change on Android in the WebKit browser that was started in this issue:

    https://bugs.webkit.org/show_bug.cgi?id=78664

    The property was added in this revision.

    Looking at the code you can see it's default value is touch on touch-enabled devices.