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

This commit is contained in:
Thomas Chandelle authored and Tim Schaub committed 2017-02-03 14:10:56 -07:00
1 parent bbf4c449e6
commit 54c8beef4e
1 file changed
+2 -2
+2 -2
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) {