fix: 添加短暂延迟以确保编辑器跳转完成后立即取消选择,优化临时点信息显示
This commit is contained in:
parent
5fa6aa5e1c
commit
3192cb814e
@ -223,6 +223,11 @@ export function useViewState() {
|
|||||||
// 跳转到临时点
|
// 跳转到临时点
|
||||||
editor.gotoById(centerPointId);
|
editor.gotoById(centerPointId);
|
||||||
|
|
||||||
|
// 立即取消选择,避免右侧卡片显示临时点信息
|
||||||
|
setTimeout(() => {
|
||||||
|
editor.inactive();
|
||||||
|
}, 10); // 短暂延迟确保跳转完成
|
||||||
|
|
||||||
// 延迟清理临时点(保存时已自动过滤,这里只是为了清理画布显示)
|
// 延迟清理临时点(保存时已自动过滤,这里只是为了清理画布显示)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const remainingPoints = editor
|
const remainingPoints = editor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user