Allow left-click drag to scroll in Static preview mode

This commit is contained in:
Cidwel Highwind 2026-04-04 13:30:12 +02:00
parent 222a36623e
commit 3517e65294
1 changed files with 4 additions and 6 deletions

View File

@ -1539,13 +1539,11 @@ openPreviewWindow = function()
end end
end, end,
onmousedown = function(ev) onmousedown = function(ev)
-- Static mode: right-click drag to scroll -- Static mode: any click drag to scroll
if S.previewMode == "static" then if S.previewMode == "static" then
if ev.button == MouseButton.RIGHT then S.previewStaDragging = true
S.previewStaDragging = true S.previewStaDragLastX = ev.x
S.previewStaDragLastX = ev.x S.previewStaDragLastY = ev.y
S.previewStaDragLastY = ev.y
end
return return
end end
-- In single mode: L-click=prev anim, R-click=next anim -- In single mode: L-click=prev anim, R-click=next anim