Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android - webview not handling touch events when page doesnt need to scroll

$
0
0

The strangest thing, on android i have a webview, without any events just plain:

<Alloy>
    <!-- load menu -->
    <Window id="menu" width="267dip" height="Ti.UI.FILL" left="-267dip" top="0" zIndex="100">
        <WebView enableZoomControls="false" id="menuView" url="/html/menu.html" disableBounce="true" height="Ti.UI.FILL" width="267dip"></WebView>
    </Window>
 
</Alloy>
in the webview i am using jQuery to listen to touch events, no rocket sciene
$('div.row').bind('touchstart', function(){
    alert('touchstart');
});
when i set the page to be 267 pixels with this meta tag
<meta name="MobileOptimized" content="267">
the touch events dont work, when i set the content 1 px bigger, the page needs to scroll in the webview and the touch events work....

Soooo........ WTF?!?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>