Stop handling down/up sequence when all fingers have been removed

This commit is contained in:
Thomas Chandelle
2017-02-01 13:32:02 +01:00
committed by Tim Schaub
parent bbf4c449e6
commit 54c8beef4e

View File

@@ -187,8 +187,8 @@ ol.interaction.Pointer.handleEvent = function(mapBrowserEvent) {
if (mapBrowserEvent.type == ol.MapBrowserEventType.POINTERDRAG) {
this.handleDragEvent_(mapBrowserEvent);
} else if (mapBrowserEvent.type == ol.MapBrowserEventType.POINTERUP) {
this.handleUpEvent_(mapBrowserEvent);
this.handlingDownUpSequence = false;
this.handlingDownUpSequence = this.handleUpEvent_(mapBrowserEvent) &&
this.targetPointers.length > 0;
}
} else {
if (mapBrowserEvent.type == ol.MapBrowserEventType.POINTERDOWN) {