Stop handling down/up sequence when all fingers have been removed
This commit is contained in:
committed by
Tim Schaub
parent
bbf4c449e6
commit
54c8beef4e
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user