Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/OpenLayers/Handler/Pinch.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ OpenLayers.Handler.Pinch = OpenLayers.Class(OpenLayers.Handler, {
* {Boolean} Let the event propagate.
*/
touchstart: function(evt) {
// Check if first touch point is outside map
// Sometimes this is necessary for multitouch to disable unwanted map zooming
var id = evt.touches.item(0).target.id;
if(id){
if(id.indexOf("OpenLayers") === -1){
return false;
}
}
var propagate = true;
this.pinching = false;
if (OpenLayers.Event.isMultiTouch(evt)) {
Expand Down