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,
...@@ -124,10 +124,11 @@ onMounted(() => { ...@@ -124,10 +124,11 @@ onMounted(() => {
canvas: 'map', canvas: 'map',
//如果deck滚动条滚动或者拖动地图时,不进行地图角度和等级矫正 //如果deck滚动条滚动或者拖动地图时,不进行地图角度和等级矫正
onInteractionStateChange: f => { onInteractionStateChange: f => {
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