[6.7.0][视角变换] 优化切远视角时,手势拖动地图时,地图画面跳动
This commit is contained in:
@@ -43,7 +43,6 @@ class MoGoVisualAngleChangeProvider: IMoGoVisualAngleChangeProvider {
|
||||
|
||||
private val prevScene by lazy { AtomicReference<Scene>() }
|
||||
|
||||
private var timerJob: Job? = null
|
||||
|
||||
private val listener = object : IMoGoMapRoadListener {
|
||||
private val roadId = AtomicReference<String>()
|
||||
@@ -207,23 +206,7 @@ class MoGoVisualAngleChangeProvider: IMoGoVisualAngleChangeProvider {
|
||||
DOWN -> CallerMapUIServiceManager.getMapUIController()?.setScreenToOriginDis(5.0f)
|
||||
}
|
||||
if (target !is Roma) {
|
||||
if (target is LongSight) {
|
||||
timerJob?.safeCancel()
|
||||
scope.launch {
|
||||
CallerMapUIServiceManager.getMapUIController()?.setAllGesturesEnabled(false)
|
||||
itx.changeMapVisualAngle(angle, null)
|
||||
delay(3000)
|
||||
CallerMapUIServiceManager.getMapUIController()?.setAllGesturesEnabled(true)
|
||||
}.also {
|
||||
it.invokeOnCompletion {
|
||||
CallerMapUIServiceManager.getMapUIController()?.setAllGesturesEnabled(true)
|
||||
}
|
||||
timerJob = it
|
||||
}
|
||||
} else {
|
||||
timerJob?.safeCancel()
|
||||
itx.changeMapVisualAngle(angle, null)
|
||||
}
|
||||
itx.changeMapVisualAngle(angle, null)
|
||||
}
|
||||
} finally {
|
||||
if (prev == null || prev.javaClass != target.javaClass) {
|
||||
|
||||
Reference in New Issue
Block a user