Do not prevent default on pointermove
Instead, only prevent default on handled pointerdown events. This makes the `focus` condition work with interactions that involve dragging on touch devices.
This commit is contained in:
@@ -55,7 +55,8 @@ describe('ol.interaction.Extent', function() {
|
||||
button: button,
|
||||
clientX: position.left + x + width / 2,
|
||||
clientY: position.top - y + height / 2,
|
||||
shiftKey: shiftKey
|
||||
shiftKey: shiftKey,
|
||||
preventDefault: function() {}
|
||||
});
|
||||
const event = new MapBrowserPointerEvent(type, map, pointerEvent);
|
||||
event.pointerEvent.pointerId = 1;
|
||||
|
||||
Reference in New Issue
Block a user