时间轴交互与预览修正

- 界面文字全局禁止鼠标框选,输入类控件保留可选中
- 拖动时间轴立即暂停自动播放,避免与播放头抢时间轴
- 暂停时补齐未完成的帧缓存,拖动时间轴直接读取已烘焙帧,无需重新触发播放
- 循环持续的烘焙不再依赖从第 0 帧开始录制,避免整段缓存为空
This commit is contained in:
tianmo committed 2026-10-09 17:22:36 +08:00
1 parent d6232c9d66
commit 2ba2b9c08a
3 files changed
+59 -9

No files matched your search

+2
View File
@@ -355,6 +355,8 @@ function onWheel(e: WheelEvent) {
// 拖动时间轴滑动(scrub):更新 frame(0..totalFrames-1)
function onScrubDown(e: PointerEvent) {
const vp = vpRef.value!
// 用户接管时间轴时立即暂停播放,否则每帧推进会和拖动抢播放头。
store.pause()
const move = (ev: PointerEvent) => {
const rect = vp.getBoundingClientRect()
const f = Math.floor(((ev.clientX - rect.left) / rect.width) * viewFrames.value)