Remove view hint handling from pointer interaction

This commit is contained in:
Éric Lemoine
2014-03-13 08:39:52 +01:00
committed by tsauerwein
parent 35b31730b5
commit d1ef5b0f5b

View File

@@ -7,7 +7,6 @@ goog.require('ol.MapBrowserEvent');
goog.require('ol.MapBrowserEvent.EventType');
goog.require('ol.MapBrowserPointerEvent');
goog.require('ol.Pixel');
goog.require('ol.ViewHint');
goog.require('ol.interaction.Interaction');
@@ -137,7 +136,6 @@ ol.interaction.Pointer.prototype.handleMapBrowserEvent =
/** @type {ol.MapBrowserPointerEvent} */ (mapBrowserEvent);
var stopEvent = false;
var view = mapBrowserEvent.map.getView();
this.updateTrackedPointers_(mapBrowserPointerEvent);
if (this.handlingDownUpSequence) {
if (mapBrowserPointerEvent.type ==
@@ -147,16 +145,10 @@ ol.interaction.Pointer.prototype.handleMapBrowserEvent =
ol.MapBrowserEvent.EventType.POINTERUP) {
this.handlingDownUpSequence =
this.handlePointerUp(mapBrowserPointerEvent);
if (!this.handlingDownUpSequence) {
view.setHint(ol.ViewHint.INTERACTING, -1);
}
}
}
if (mapBrowserPointerEvent.type == ol.MapBrowserEvent.EventType.POINTERDOWN) {
var handled = this.handlePointerDown(mapBrowserPointerEvent);
if (!this.handlingDownUpSequence && handled) {
view.setHint(ol.ViewHint.INTERACTING, 1);
}
this.handlingDownUpSequence = handled;
stopEvent = this.shouldStopEvent(handled);
}