mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Fixed error preventing operation on touch screen for position actions
This commit is contained in:
@@ -880,7 +880,7 @@ export class Map extends L.Map {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (this.#state === CONTEXT_ACTION) {
|
} else if (this.#state === CONTEXT_ACTION) {
|
||||||
if (e.originalEvent.buttons === 1) {
|
if (e.type === 'touchstart' || e.originalEvent.buttons === 1) {
|
||||||
if (this.#contextAction !== null) this.executeContextAction(null, pressLocation);
|
if (this.#contextAction !== null) this.executeContextAction(null, pressLocation);
|
||||||
else this.setState(IDLE);
|
else this.setState(IDLE);
|
||||||
} else if (e.originalEvent.buttons === 2) {
|
} else if (e.originalEvent.buttons === 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user