Removing unnecessary handlers introduced in r12183 (closes #3403)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12190 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-07-26 07:49:00 +00:00
parent 3c076b564b
commit 66d7e36f47

View File

@@ -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
});