@@ -112,6 +112,11 @@ ol.interaction.DragPan.handleUpEvent_ = function(mapBrowserEvent) {
|
|||||||
view.setHint(ol.ViewHint.INTERACTING, -1);
|
view.setHint(ol.ViewHint.INTERACTING, -1);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
if (this.kinetic_) {
|
||||||
|
// reset so we don't overestimate the kinetic energy after
|
||||||
|
// after one finger up, tiny drag, second finger up
|
||||||
|
this.kinetic_.begin();
|
||||||
|
}
|
||||||
this.lastCentroid = null;
|
this.lastCentroid = null;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -187,8 +187,8 @@ ol.interaction.Pointer.handleEvent = function(mapBrowserEvent) {
|
|||||||
if (mapBrowserEvent.type == ol.MapBrowserEventType.POINTERDRAG) {
|
if (mapBrowserEvent.type == ol.MapBrowserEventType.POINTERDRAG) {
|
||||||
this.handleDragEvent_(mapBrowserEvent);
|
this.handleDragEvent_(mapBrowserEvent);
|
||||||
} else if (mapBrowserEvent.type == ol.MapBrowserEventType.POINTERUP) {
|
} else if (mapBrowserEvent.type == ol.MapBrowserEventType.POINTERUP) {
|
||||||
this.handleUpEvent_(mapBrowserEvent);
|
var handledUp = this.handleUpEvent_(mapBrowserEvent);
|
||||||
this.handlingDownUpSequence = false;
|
this.handlingDownUpSequence = handledUp && this.targetPointers.length > 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (mapBrowserEvent.type == ol.MapBrowserEventType.POINTERDOWN) {
|
if (mapBrowserEvent.type == ol.MapBrowserEventType.POINTERDOWN) {
|
||||||
|
|||||||
Reference in New Issue
Block a user