mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-12-02 10:02:12 +00:00
fix safari incompatibility
This commit is contained in:
@@ -30,8 +30,8 @@ export class MapCursor {
|
||||
constructor() {
|
||||
this._states = writable(new Set());
|
||||
this._states.subscribe((states) => {
|
||||
let state = states.entries().reduce((max, entry) => {
|
||||
return entry[0] > max ? entry[0] : max;
|
||||
let state = Array.from(states.values()).reduce((max, value) => {
|
||||
return value > max ? value : max;
|
||||
}, MapCursorState.DEFAULT);
|
||||
let canvas = get(map)?.getCanvas();
|
||||
if (canvas) {
|
||||
|
||||
Reference in New Issue
Block a user