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:
@@ -957,22 +957,9 @@ OpenLayers.Popup = OpenLayers.Class({
|
|||||||
registerEvents:function() {
|
registerEvents:function() {
|
||||||
this.events = new OpenLayers.Events(this, this.div, null, true);
|
this.events = new OpenLayers.Events(this, this.div, null, true);
|
||||||
|
|
||||||
var touchStarted = false;
|
|
||||||
function onTouchstart(evt) {
|
function onTouchstart(evt) {
|
||||||
touchStarted = true;
|
|
||||||
OpenLayers.Event.stop(evt, 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({
|
this.events.on({
|
||||||
"mousedown": this.onmousedown,
|
"mousedown": this.onmousedown,
|
||||||
"mousemove": this.onmousemove,
|
"mousemove": this.onmousemove,
|
||||||
@@ -981,8 +968,6 @@ OpenLayers.Popup = OpenLayers.Class({
|
|||||||
"mouseout": this.onmouseout,
|
"mouseout": this.onmouseout,
|
||||||
"dblclick": this.ondblclick,
|
"dblclick": this.ondblclick,
|
||||||
"touchstart": onTouchstart,
|
"touchstart": onTouchstart,
|
||||||
"touchmove": onTouchmove,
|
|
||||||
"touchsend": onTouchend,
|
|
||||||
scope: this
|
scope: this
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user