优化显示

This commit is contained in:
tianmo
2026-08-29 02:00:52 +08:00
parent c37cf09273
commit 181da30e58
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -77,8 +77,8 @@ const vpRef = ref<HTMLElement | null>(null)
// 时间轴与固定步长模拟统一读取 Store;默认 1 秒 = 30 帧,与 Spine 对齐。
const fps = computed(() => Math.max(1, store.timeline.fps || 30))
/** 视口当前能显示的帧数(滚轮缩放它)。视口起点恒为第 0 帧,不滚动 */
const viewFrames = ref(51)
/** 视口当前能显示的帧数(滚轮缩放它)。默认显示 0120f起点恒为第 0 帧 */
const viewFrames = ref(120)
// 拖动期间只更新本地预览值,松手后再一次性写回配置。
// 避免 pointermove 每一帧都触发 Stage 清缓存、重置粒子模拟。
const draftDelays = ref<Record<number, number>>({})