Prevent scrolling from map.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2011-02-17 05:07:50 +00:00
parent 2eee8a3add
commit 0fa37001dc

View File

@@ -3,6 +3,7 @@
<head>
<title>OpenLayers with jQuery Mobile</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0;">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css">
<script src="http://code.jquery.com/jquery-1.5.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
@@ -92,6 +93,11 @@
$("#nav").click();
$("#nav").click(); // jquery mobile bug forces 2 calls to refresh radio ui
// disable scrolling from the map
$("#map").bind("touchstart", function(event) {
event.preventDefault();
});
});
</script>