From f5769b8097687936753d75757153df4f16dd30a0 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 8 Mar 2011 15:21:33 +0000 Subject: [PATCH] Setting lastMoveEvt in dragmove so it is accessible in both touch and mouse environments. r=erilem (closes #2936) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11671 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Handler/Drag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Handler/Drag.js b/lib/OpenLayers/Handler/Drag.js index fc9f9b686c..8bd6e28545 100644 --- a/lib/OpenLayers/Handler/Drag.js +++ b/lib/OpenLayers/Handler/Drag.js @@ -192,6 +192,7 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, { * {Boolean} Let the event propagate. */ dragmove: function (evt) { + this.lastMoveEvt = evt; if (this.started && !this.timeoutId && (evt.xy.x != this.last.x || evt.xy.y != this.last.y)) { if(this.documentDrag === true && this.documentEvents) { @@ -349,7 +350,6 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, { * {Boolean} Let the event propagate. */ mousemove: function(evt) { - this.lastMoveEvt = evt; return this.dragmove(evt); },