mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 修复图表添加动画时被缩放到异常状态的问题
This commit is contained in:
parent
fc5a3024a6
commit
6a95f8280c
@ -283,7 +283,9 @@ const updateElementAnimation = (type: AnimationType, effect: string) => {
|
||||
const animationItem = currentSlideAnimations.value.find(item => item.elId === handleElementId.value)
|
||||
const duration = animationItem?.duration || ANIMATION_DEFAULT_DURATION
|
||||
|
||||
runAnimation(handleElementId.value, effect, duration)
|
||||
setTimeout(() => {
|
||||
runAnimation(handleElementId.value, effect, duration)
|
||||
}, 0)
|
||||
}
|
||||
|
||||
const handleAnimationId = ref('')
|
||||
@ -307,7 +309,9 @@ const addAnimation = (type: AnimationType, effect: string) => {
|
||||
animationPoolVisible.value = false
|
||||
addHistorySnapshot()
|
||||
|
||||
runAnimation(handleElementId.value, effect, ANIMATION_DEFAULT_DURATION)
|
||||
setTimeout(() => {
|
||||
runAnimation(handleElementId.value, effect, ANIMATION_DEFAULT_DURATION)
|
||||
}, 0)
|
||||
}
|
||||
|
||||
// 动画选择面板打开600ms后再移除遮罩层,否则打开面板后迅速滑入鼠标预览会导致抖动
|
||||
|
Loading…
x
Reference in New Issue
Block a user