Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ const handleRotationStyleUpdate = wrapUpdateHandler(
spriteContext,
false
)
const handleHeadingUpdate = wrapUpdateHandler((h: number | null) => props.sprite.setHeading(h ?? 0), spriteContext)
const handleHeadingUpdate = wrapUpdateHandler(
(h: number | null) => props.sprite.setHeading(h ?? 0),
spriteContext,
false
)
Comment on lines +55 to +59
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AnglePicker 做了 防抖。这里再做一次,会导致 第二次数值 变化可能被 第一次的值 覆盖。

例如:
第一次选择 130度,300ms 后更新值,300ms 后更新 sprite
这时候快速选择 150度,界面变成 150度。sprite 同步回来,把 150度 变成 130度.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2567 中,SpriteDirection.vue 被移除了,相关的功能挪到了 HeadingConfigPanel.vue, 需要同步修改

</script>

<!-- eslint-disable vue/no-v-html -->
Expand Down