Skip to content

Commit d52fed5

Browse files
committed
A more robust check for TouchEvent instances
1 parent 47aa2da commit d52fed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/MapSelectOverlay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default {
8787
8888
getXY(event: any): number[] {
8989
let [x, y] = [null, null] as [number | null, number | null]
90-
if (event instanceof window.TouchEvent) {
90+
if (window.TouchEvent && event instanceof window.TouchEvent) {
9191
if (event.touches?.length) {
9292
x = event.touches[0].clientX
9393
y = event.touches[0].clientY

0 commit comments

Comments
 (0)