catch autodrag as well (this is for double-clicks)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-17 15:47:27 +00:00
parent 6392e9877c
commit e582436f55

View File

@@ -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<77>ll set a flag so that
// we dont get recursivity. this is because the events fall through