Jelly Bean webview app does not respond to touchhend events perfectly

My webview app works great with touchhend events in the Android version older than Jelly Bean. But in Bean jelly, touchhend events are unreliable. Especially in divhe scrollable events, touchhend events sometimes do not fire, and the entire application stops responding to any touchhend events, and I get a Log message with the tag "webcoreglue" and the text "Should not be: there are no check nodes based on the direct found" Now, after as I scroll a little, he begins to respond to touch normally. Help Pls.

HTML

<div id="srpanel" class="panel"> <div class="main sr-list"> <div class="sr-list-item-action"> </div> </div> </div> 

Js

 $('.sr-list-item-action').bind('touchend', function(){ //some code }); 

I use the div 'sr-list-item-action' in the for loop for each item in the list. Thus, clicking on an item in the list only works a few times. Otherwise, when it does not work, the whole screen is actually frozen and stops receiving any touchhend events until I scroll. Another thing I've observed is this happens more often when I do $(document).scrollTop(); when I go to the next page of the list. Not sure if this is related.

+4
android-webview android-4.2-jelly-bean
Sep 11 '12 at 7:40
source share
2 answers

There was the same problem. After many sleepless nights, it saved me:

 window,html,body { overflow-x:hidden !important; -webkit-overflow-scrolling: touch !important; overflow: scroll !important; } 
+3
Feb 21 '13 at 23:44
source share

Change all your touchhend to 'click' on the side of your binding. It worked for me. It was useful: Android WebView JellyBean -> Shouldn't be: no nodes based on direct testing

+2
Jan 16 '13 at 23:52
source share



All Articles