Register mouseout operator on div to be same as mouseup, so we don't drag ourselves right out of the box.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@201 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -98,6 +98,7 @@ OpenLayers.Map.prototype = {
|
|||||||
this.events.register( "mousedown", this, this.defaultMouseDown );
|
this.events.register( "mousedown", this, this.defaultMouseDown );
|
||||||
this.events.register( "mouseup", this, this.defaultMouseUp );
|
this.events.register( "mouseup", this, this.defaultMouseUp );
|
||||||
this.events.register( "mousemove", this, this.defaultMouseMove );
|
this.events.register( "mousemove", this, this.defaultMouseMove );
|
||||||
|
this.events.register( "mouseout", this, this.defaultMouseUp );
|
||||||
|
|
||||||
// always call map.destroy()
|
// always call map.destroy()
|
||||||
Event.observe(window, 'unload',
|
Event.observe(window, 'unload',
|
||||||
|
|||||||
Reference in New Issue
Block a user