@@ -184,13 +184,10 @@ ol.interaction.Pointer.handleEvent = function(mapBrowserEvent) {
|
|||||||
var stopEvent = false;
|
var stopEvent = false;
|
||||||
this.updateTrackedPointers_(mapBrowserEvent);
|
this.updateTrackedPointers_(mapBrowserEvent);
|
||||||
if (this.handlingDownUpSequence) {
|
if (this.handlingDownUpSequence) {
|
||||||
if (mapBrowserEvent.type ==
|
if (mapBrowserEvent.type == ol.MapBrowserEvent.EventType.POINTERDRAG) {
|
||||||
ol.MapBrowserEvent.EventType.POINTERDRAG) {
|
|
||||||
this.handleDragEvent_(mapBrowserEvent);
|
this.handleDragEvent_(mapBrowserEvent);
|
||||||
} else if (mapBrowserEvent.type ==
|
} else if (mapBrowserEvent.type == ol.MapBrowserEvent.EventType.POINTERUP) {
|
||||||
ol.MapBrowserEvent.EventType.POINTERUP) {
|
this.handlingDownUpSequence = this.handleUpEvent_(mapBrowserEvent);
|
||||||
this.handlingDownUpSequence =
|
|
||||||
this.handleUpEvent_(mapBrowserEvent);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mapBrowserEvent.type == ol.MapBrowserEvent.EventType.POINTERDOWN) {
|
if (mapBrowserEvent.type == ol.MapBrowserEvent.EventType.POINTERDOWN) {
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ describe('ol.interaction.Select', function() {
|
|||||||
clientY: position.y + y + height / 2,
|
clientY: position.y + y + height / 2,
|
||||||
shiftKey: shiftKey
|
shiftKey: shiftKey
|
||||||
})));
|
})));
|
||||||
console.debug(event);
|
|
||||||
map.handleMapBrowserEvent(event);
|
map.handleMapBrowserEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user