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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user