Skip to content

Commit

Permalink
Nudge by 10px on Shift Click
Browse files Browse the repository at this point in the history
Fixes: #5579
  • Loading branch information
InfusOnWoW committed Dec 20, 2024
1 parent d5def48 commit bbf82e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WeakAurasOptions/OptionsFrames/MoverSizer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbf82e6

Please sign in to comment.