Skip to content

Commit

Permalink
Fix "abnormal" aspect ratios causing accidental musicwheel clicking
Browse files Browse the repository at this point in the history
in til death
  • Loading branch information
poco0317 committed Mar 21, 2021
1 parent 20870e4 commit 9b58864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Themes/Til Death/BGAnimations/_mousewheelscroll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ local function scrollInput(event)
local mouseX = INPUTFILTER:GetMouseX()
local mouseY = INPUTFILTER:GetMouseY()

if mouseX > capWideScale(370, 500) and mouseX < SCREEN_WIDTH - 32 then
if mouseX > SCREEN_WIDTH-(capWideScale(get43size(350),350)) and mouseX < SCREEN_WIDTH - 32 then
if event.DeviceInput.button == "DeviceButton_left mouse button" and event.type == "InputEventType_FirstPress" then
local n = 0
local m = 1
Expand Down

0 comments on commit 9b58864

Please sign in to comment.