[OpenLayers-Commits] r11582 - trunk/openlayers/lib/OpenLayers/Layer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Feb 28 12:00:17 EST 2011
Author: crschmidt
Date: 2011-02-28 09:00:13 -0800 (Mon, 28 Feb 2011)
New Revision: 11582
Modified:
trunk/openlayers/lib/OpenLayers/Layer/EventPane.js
Log:
Prevent "flicker" from Yahoo! when ending a drag by using dragPan object
unless there is no oldCenter, or we are zooming. r=ahocevar (Closes #2213)
Modified: trunk/openlayers/lib/OpenLayers/Layer/EventPane.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/EventPane.js 2011-02-28 12:55:40 UTC (rev 11581)
+++ trunk/openlayers/lib/OpenLayers/Layer/EventPane.js 2011-02-28 17:00:13 UTC (rev 11582)
@@ -258,7 +258,7 @@
if ( !(newCenter.equals(oldCenter)) ||
!(newZoom == oldZoom) ) {
- if (dragging && this.dragPanMapObject &&
+ if (!zoomChanged && oldCenter && this.dragPanMapObject &&
this.smoothDragPan) {
var oldPx = this.map.getViewPortPxFromLonLat(oldCenter);
var newPx = this.map.getViewPortPxFromLonLat(newCenter);
More information about the Commits
mailing list