diff --git a/lib/OpenLayers/Layer/Yahoo.js b/lib/OpenLayers/Layer/Yahoo.js index 8d0a6a8b73..c6c7406a6e 100644 --- a/lib/OpenLayers/Layer/Yahoo.js +++ b/lib/OpenLayers/Layer/Yahoo.js @@ -71,7 +71,6 @@ OpenLayers.Layer.Yahoo.prototype = Object.extend( new OpenLayers.Layer(), { // create GMap, hide nav controls this.ymap = new YMap(this.div); -// this.moveTo(); // catch pans and zooms from GMap YEvent.Capture(this.ymap, @@ -79,6 +78,12 @@ OpenLayers.Layer.Yahoo.prototype = Object.extend( new OpenLayers.Layer(), { this.catchPanZoom, this); + // catch pans and zooms from GMap + YEvent.Capture(this.ymap, + EventsList.endAutoPan, + this.catchPanZoom, + this); + // attach to the drag start and end and weŽll set a flag so that // we dont get recursivity. this is because the events fall through