[OpenLayers-Commits] r11671 - trunk/openlayers/lib/OpenLayers/Handler

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Tue Mar 8 10:21:36 EST 2011


Author: tschaub
Date: 2011-03-08 07:21:33 -0800 (Tue, 08 Mar 2011)
New Revision: 11671

Modified:
   trunk/openlayers/lib/OpenLayers/Handler/Drag.js
Log:
Setting lastMoveEvt in dragmove so it is accessible in both touch and mouse environments. r=erilem (closes #2936)

Modified: trunk/openlayers/lib/OpenLayers/Handler/Drag.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Drag.js	2011-03-08 15:21:14 UTC (rev 11670)
+++ trunk/openlayers/lib/OpenLayers/Handler/Drag.js	2011-03-08 15:21:33 UTC (rev 11671)
@@ -192,6 +192,7 @@
      * {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 @@
      * {Boolean} Let the event propagate.
      */
     mousemove: function(evt) {
-        this.lastMoveEvt = evt;
         return this.dragmove(evt);
     },
 



More information about the Commits mailing list