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:
parent
6fdfb194a6
commit
19b0eeeffd
@ -880,7 +880,7 @@ export class Map extends L.Map {
|
||||
}
|
||||
}
|
||||
} 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);
|
||||
else this.setState(IDLE);
|
||||
} else if (e.originalEvent.buttons === 2) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user