Commit 95f2ae07 authored by 高晓帆's avatar 高晓帆

fix

parent 1dca4515
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -49,7 +49,7 @@ let resetTime = null ...@@ -49,7 +49,7 @@ let resetTime = null
let obstaclePolygons = [] let obstaclePolygons = []
let dynamicPaths = [] let dynamicPaths = []
const reNavigateTime = 10 * 1000 const reNavigateTime = 2.5 * 1000
const props = defineProps({ const props = defineProps({
isShowBasic: Boolean, isShowBasic: Boolean,
...@@ -128,6 +128,7 @@ onMounted(() => { ...@@ -128,6 +128,7 @@ onMounted(() => {
if (!currentPosition) return if (!currentPosition) return
if (f.isZooming || f.isDragging) { if (f.isZooming || f.isDragging) {
navigate.value = false navigate.value = false
clearTimeout(resetTime)
resetTime = window.setTimeout(() => { resetTime = window.setTimeout(() => {
if (!navigate.value) { if (!navigate.value) {
navigate.value = true navigate.value = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment