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) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11582 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -258,7 +258,7 @@ OpenLayers.Layer.EventPane = OpenLayers.Class(OpenLayers.Layer, {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user