Leave the down_ event set

The other "up" type listeners (for touch and pointer) do not set this to null.  This event can be of use to a click listener that might want to compare the down position to the click event's position.
This commit is contained in:
Tim Schaub
2013-11-07 11:02:04 -07:00
parent 7f120ba685
commit 812cb7fb12

View File

@@ -221,7 +221,6 @@ ol.MapBrowserEventHandler.prototype.handleMouseUp_ = function(browserEvent) {
var newEvent = new ol.MapBrowserEvent(
ol.MapBrowserEvent.EventType.DRAGEND, this.map_, browserEvent);
this.dispatchEvent(newEvent);
this.down_ = null;
} else if (browserEvent.isMouseActionButton()) {
this.emulateClick_(browserEvent);
}