From 0fa37001dcab6fdf2465fdf481aade21335ada7e Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 17 Feb 2011 05:07:50 +0000 Subject: [PATCH] Prevent scrolling from map. git-svn-id: http://svn.openlayers.org/trunk/openlayers@11131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/mobile-jq.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/mobile-jq.html b/examples/mobile-jq.html index 6267a21bd5..f4cf5e7895 100644 --- a/examples/mobile-jq.html +++ b/examples/mobile-jq.html @@ -3,6 +3,7 @@ OpenLayers with jQuery Mobile + @@ -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(); + }); });