diff --git a/lib/OpenLayers/Popup.js b/lib/OpenLayers/Popup.js index 5ba9c9b10f..0a4d99f379 100644 --- a/lib/OpenLayers/Popup.js +++ b/lib/OpenLayers/Popup.js @@ -957,22 +957,9 @@ OpenLayers.Popup = OpenLayers.Class({ registerEvents:function() { this.events = new OpenLayers.Events(this, this.div, null, true); - var touchStarted = false; function onTouchstart(evt) { - touchStarted = true; OpenLayers.Event.stop(evt, true); } - function onTouchmove(evt) { - if (touchStarted === true) { - OpenLayers.Event.stop(evt, true); - } - } - function onTouchend(evt) { - if (touchStarted === true) { - touchStarted = false; - OpenLayers.Event.stop(evt, true); - } - } this.events.on({ "mousedown": this.onmousedown, "mousemove": this.onmousemove, @@ -981,8 +968,6 @@ OpenLayers.Popup = OpenLayers.Class({ "mouseout": this.onmouseout, "dblclick": this.ondblclick, "touchstart": onTouchstart, - "touchmove": onTouchmove, - "touchsend": onTouchend, scope: this });