redo of r1438 to make popup use new Events-Fall-Through functionality (as introduced with r1468)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1470 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+10
-12
@@ -250,18 +250,16 @@ OpenLayers.Popup.prototype = {
|
|||||||
* hyperlinks or drag-selecting text.
|
* hyperlinks or drag-selecting text.
|
||||||
*/
|
*/
|
||||||
registerEvents:function() {
|
registerEvents:function() {
|
||||||
Event.observe(this.div, "mousedown",
|
this.events = new OpenLayers.Events(this, this.div, null, true);
|
||||||
this.onmousedown.bindAsEventListener(this));
|
|
||||||
Event.observe(this.div, "mousemove",
|
this.events.register("mousedown", this, this.onmousedown);
|
||||||
this.onmousemove.bindAsEventListener(this));
|
this.events.register("mousemove", this, this.onmousemove);
|
||||||
Event.observe(this.div, "mouseup",
|
this.events.register("mouseup", this, this.onmouseup);
|
||||||
this.onmouseup.bindAsEventListener(this));
|
this.events.register("click", this,
|
||||||
Event.observe(this.div, "click",
|
OpenLayers.Util.safeStopPropagation);
|
||||||
OpenLayers.Util.safeStopPropagation);
|
this.events.register("mouseout", this, this.onmouseout);
|
||||||
Event.observe(this.div, "mouseout",
|
this.events.register("dblclick", this,
|
||||||
this.onmouseout.bindAsEventListener(this));
|
OpenLayers.Util.safeStopPropagation);
|
||||||
Event.observe(this.div, "dblclick",
|
|
||||||
OpenLayers.Util.safeStopPropagation);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** When mouse goes down within the popup, make a note of
|
/** When mouse goes down within the popup, make a note of
|
||||||
|
|||||||
Reference in New Issue
Block a user