Remove view hint handling from pointer interaction
This commit is contained in:
@@ -7,7 +7,6 @@ goog.require('ol.MapBrowserEvent');
|
|||||||
goog.require('ol.MapBrowserEvent.EventType');
|
goog.require('ol.MapBrowserEvent.EventType');
|
||||||
goog.require('ol.MapBrowserPointerEvent');
|
goog.require('ol.MapBrowserPointerEvent');
|
||||||
goog.require('ol.Pixel');
|
goog.require('ol.Pixel');
|
||||||
goog.require('ol.ViewHint');
|
|
||||||
goog.require('ol.interaction.Interaction');
|
goog.require('ol.interaction.Interaction');
|
||||||
|
|
||||||
|
|
||||||
@@ -137,7 +136,6 @@ ol.interaction.Pointer.prototype.handleMapBrowserEvent =
|
|||||||
/** @type {ol.MapBrowserPointerEvent} */ (mapBrowserEvent);
|
/** @type {ol.MapBrowserPointerEvent} */ (mapBrowserEvent);
|
||||||
|
|
||||||
var stopEvent = false;
|
var stopEvent = false;
|
||||||
var view = mapBrowserEvent.map.getView();
|
|
||||||
this.updateTrackedPointers_(mapBrowserPointerEvent);
|
this.updateTrackedPointers_(mapBrowserPointerEvent);
|
||||||
if (this.handlingDownUpSequence) {
|
if (this.handlingDownUpSequence) {
|
||||||
if (mapBrowserPointerEvent.type ==
|
if (mapBrowserPointerEvent.type ==
|
||||||
@@ -147,16 +145,10 @@ ol.interaction.Pointer.prototype.handleMapBrowserEvent =
|
|||||||
ol.MapBrowserEvent.EventType.POINTERUP) {
|
ol.MapBrowserEvent.EventType.POINTERUP) {
|
||||||
this.handlingDownUpSequence =
|
this.handlingDownUpSequence =
|
||||||
this.handlePointerUp(mapBrowserPointerEvent);
|
this.handlePointerUp(mapBrowserPointerEvent);
|
||||||
if (!this.handlingDownUpSequence) {
|
|
||||||
view.setHint(ol.ViewHint.INTERACTING, -1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mapBrowserPointerEvent.type == ol.MapBrowserEvent.EventType.POINTERDOWN) {
|
if (mapBrowserPointerEvent.type == ol.MapBrowserEvent.EventType.POINTERDOWN) {
|
||||||
var handled = this.handlePointerDown(mapBrowserPointerEvent);
|
var handled = this.handlePointerDown(mapBrowserPointerEvent);
|
||||||
if (!this.handlingDownUpSequence && handled) {
|
|
||||||
view.setHint(ol.ViewHint.INTERACTING, 1);
|
|
||||||
}
|
|
||||||
this.handlingDownUpSequence = handled;
|
this.handlingDownUpSequence = handled;
|
||||||
stopEvent = this.shouldStopEvent(handled);
|
stopEvent = this.shouldStopEvent(handled);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user