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:
@@ -223,6 +223,9 @@ export function handleEvent(mapBrowserEvent) {
|
||||
} else {
|
||||
if (mapBrowserEvent.type == MapBrowserEventType.POINTERDOWN) {
|
||||
const handled = this.handleDownEvent_(mapBrowserEvent);
|
||||
if (handled) {
|
||||
mapBrowserEvent.preventDefault();
|
||||
}
|
||||
this.handlingDownUpSequence = handled;
|
||||
stopEvent = this.stopDown(handled);
|
||||
} else if (mapBrowserEvent.type == MapBrowserEventType.POINTERMOVE) {
|
||||
|
||||
Reference in New Issue
Block a user