Jelly Bean webview app does not respond to touchend events perfectly

前端 未结 2 982
粉色の甜心
粉色の甜心 2020-12-30 16:15

My webview app works fine with touchend events in android version older than Jelly Bean. But in Jelly Bean, the touchend events are not reliable. Especially on divs that are

相关标签:
2条回答
  • 2020-12-30 16:44

    Had the exact same problem. After many sleepless nights this saved me:

    window,html,body {
        overflow-x:hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overflow: scroll !important;
    }
    
    0 讨论(0)
  • 2020-12-30 16:58

    Change all your 'touchend' to 'click' in side your bind. This worked for me. This linked was helpful: Android WebView JellyBean -> Should not happen: no rect-based-test nodes found

    0 讨论(0)
提交回复
热议问题