makes PointerEvent a plain closure class, instead of trying to mimic a mouse event, which was required for the polyfill
This commit is contained in:
@@ -80,7 +80,7 @@ ol.interaction.PointerInteraction.isTouchEvent_ = function(mapBrowserEvent) {
|
||||
ol.interaction.PointerInteraction.prototype.updateTrackedTouches_ =
|
||||
function(mapBrowserEvent) {
|
||||
if (ol.interaction.PointerInteraction.isTouchEvent_(mapBrowserEvent)) {
|
||||
var event = mapBrowserEvent.originalEvent;
|
||||
var event = mapBrowserEvent.pointerEvent;
|
||||
|
||||
if (mapBrowserEvent.type == ol.MapBrowserEvent.EventType.POINTERUP) {
|
||||
delete this.trackedTouches_[event.pointerId];
|
||||
|
||||
Reference in New Issue
Block a user