From bbf82e684c678fafd6d678f8efddabf45d2a312f Mon Sep 17 00:00:00 2001 From: Infus Date: Thu, 19 Dec 2024 17:30:04 +0100 Subject: [PATCH] Nudge by 10px on Shift Click Fixes: #5579 --- WeakAurasOptions/OptionsFrames/MoverSizer.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WeakAurasOptions/OptionsFrames/MoverSizer.lua b/WeakAurasOptions/OptionsFrames/MoverSizer.lua index d91af102d0..2b888e6841 100644 --- a/WeakAurasOptions/OptionsFrames/MoverSizer.lua +++ b/WeakAurasOptions/OptionsFrames/MoverSizer.lua @@ -49,6 +49,10 @@ local function moveOnePxl(direction) local physicalWidth, physicalHeight = GetPhysicalScreenSize(); local oneX = GetScreenWidth() / physicalWidth local oneY = GetScreenHeight() / physicalHeight + if IsShiftKeyDown() then + oneX = oneX * 10 + oneY = oneY * 10 + end if data then if direction == "top" then data.yOffset = data.yOffset + oneY