Ticket #1403: bring_back_dragging.patch
| File bring_back_dragging.patch, 1.0 kB (added by crschmidt, 10 months ago) |
|---|
-
lib/OpenLayers/Map.js
old new 1395 1395 var forceZoomChange = options.forceZoomChange; 1396 1396 // noEvent is false by default 1397 1397 var noEvent = options.noEvent; 1398 1398 1399 1399 if (this.panTween && options.caller == "setCenter") { 1400 1400 this.panTween.stop(); 1401 1401 } … … 1449 1449 // if neither center nor zoom will change, no need to do anything 1450 1450 if (zoomChanged || centerChanged || !dragging) { 1451 1451 1452 if (! dragging && !noEvent) {1452 if (!this.dragging && !noEvent) { 1453 1453 this.events.triggerEvent("movestart"); 1454 1454 } 1455 1455 … … 1522 1522 if (!dragging && !noEvent) { 1523 1523 this.events.triggerEvent("moveend"); 1524 1524 } 1525 1526 // Store the map dragging state for later use 1527 this.dragging = !!dragging; 1528 1525 1529 }, 1526 1530 1527 1531 /**
