From 3517e652946a4a352acbde298f5311d4d1cb0a8c Mon Sep 17 00:00:00 2001 From: Cidwel Highwind Date: Sat, 4 Apr 2026 13:30:12 +0200 Subject: [PATCH] Allow left-click drag to scroll in Static preview mode --- aniphallow.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/aniphallow.lua b/aniphallow.lua index 8a176a7..f9fb3e9 100644 --- a/aniphallow.lua +++ b/aniphallow.lua @@ -1539,13 +1539,11 @@ openPreviewWindow = function() end end, onmousedown = function(ev) - -- Static mode: right-click drag to scroll + -- Static mode: any click drag to scroll if S.previewMode == "static" then - if ev.button == MouseButton.RIGHT then - S.previewStaDragging = true - S.previewStaDragLastX = ev.x - S.previewStaDragLastY = ev.y - end + S.previewStaDragging = true + S.previewStaDragLastX = ev.x + S.previewStaDragLastY = ev.y return end -- In single mode: L-click=prev anim, R-click=next anim