Skip to content

Commit

Permalink
Fix screen resolution error
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua committed Sep 29, 2023
1 parent e62f091 commit f029f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Satchel/SatchelScript/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ end

local GamepadActionsBound = false

local IS_PHONE = UserInputService.TouchEnabled and GuiService:GetScreenResolution().X < HOTBAR_SLOTS_WIDTH_CUTOFF
local IS_PHONE = UserInputService.TouchEnabled and workspace.CurrentCamera.ViewportSize.X < HOTBAR_SLOTS_WIDTH_CUTOFF

local Player = Players.LocalPlayer

Expand Down

0 comments on commit f029f7f

Please sign in to comment.