|
@@ -15,7 +15,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import {computed, onMounted, onUnmounted, ref, watch} from 'vue'
|
|
|
import {Pos, Pos3D} from '@/sdk'
|
|
|
-import {useSDK} from '@/hook'
|
|
|
+import {customMap, useSDK} from '@/hook'
|
|
|
import { getPostionByTarget} from '@/components/base/utils'
|
|
|
|
|
|
const props = defineProps<{
|
|
@@ -50,6 +50,7 @@ updatePos()
|
|
|
|
|
|
const move = ref(false)
|
|
|
const downHandler = (sev: MouseEvent | TouchEvent) => {
|
|
|
+ customMap.magnifier = true
|
|
|
const start = new Date().getTime()
|
|
|
const el = sev.target as HTMLElement
|
|
|
const mountEl = document.documentElement
|
|
@@ -83,6 +84,7 @@ const downHandler = (sev: MouseEvent | TouchEvent) => {
|
|
|
mountEl.removeEventListener('touchmove', moveHandler)
|
|
|
mountEl.removeEventListener('touchend', upHandler)
|
|
|
move.value = false
|
|
|
+ customMap.magnifier = false
|
|
|
if (new Date().getTime() - start < 300) {
|
|
|
clickHandler(ev)
|
|
|
}
|