[OpenLayers-Commits] r11683 -
sandbox/tschaub/click/lib/OpenLayers/Handler
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Mar 9 02:04:48 EST 2011
Author: tschaub
Date: 2011-03-08 23:04:47 -0800 (Tue, 08 Mar 2011)
New Revision: 11683
Modified:
sandbox/tschaub/click/lib/OpenLayers/Handler/Pinch.js
Log:
Prevent default behavior on touchmove.
Modified: sandbox/tschaub/click/lib/OpenLayers/Handler/Pinch.js
===================================================================
--- sandbox/tschaub/click/lib/OpenLayers/Handler/Pinch.js 2011-03-09 07:04:20 UTC (rev 11682)
+++ sandbox/tschaub/click/lib/OpenLayers/Handler/Pinch.js 2011-03-09 07:04:47 UTC (rev 11683)
@@ -105,6 +105,7 @@
this.start = null;
this.last = null;
}
+ // prevent document dragging
OpenLayers.Event.stop(evt);
return propagate;
},
@@ -125,6 +126,8 @@
var current = this.getPinchData(evt);
this.callback("move", [evt, current]);
this.last = current;
+ // prevent document dragging
+ OpenLayers.Event.stop(evt);
}
return true;
},
More information about the Commits
mailing list