From e582436f5549b0fa4476fb96d6315b27ced269f1 Mon Sep 17 00:00:00 2001 From: euzuro Date: Sat, 17 Jun 2006 15:47:27 +0000 Subject: [PATCH] catch autodrag as well (this is for double-clicks) git-svn-id: http://svn.openlayers.org/trunk/openlayers@616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Yahoo.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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