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
let obstaclePolygons = []
let dynamicPaths = []
const reNavigateTime = 10 * 1000
const reNavigateTime = 2.5 * 1000
const props = defineProps({
isShowBasic: Boolean,
......@@ -124,10 +124,11 @@ onMounted(() => {
canvas: 'map',
//如果deck滚动条滚动或者拖动地图时,不进行地图角度和等级矫正
onInteractionStateChange: f => {
if (!currentPosition) return
if (f.isZooming || f.isDragging) {
navigate.value = false
clearTimeout(resetTime)
resetTime = window.setTimeout(() => {
if (!navigate.value) {
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