-
Notifications
You must be signed in to change notification settings - Fork 1
MouseScroll Bug #3
Description
Bug: MouseScroll Setting Not Respected When Hovering Over Hotbar
Description
When Settings.Gameplay.MouseScroll is set to false, the mouse wheel still cycles hotbar slots if the user hovers over the hotbar before scrolling.
Cause
The hover connection (MouseEnter/MouseLeave on the hotbar frame) in InteractionManager.luau is created unconditionally for all mouse+keyboard users, regardless of the MouseScroll setting. When the player hovers over the hotbar, the camera zoom is locked (IsZoomLocked = true). The scroll handler uses this lock as its gate, so scrolling fires even when MouseScroll = false.
Files Affected
src/client/Services/StowayClientv1_2/Input/InteractionManager.luau(line 206)
Fix
Add and Settings.Gameplay.MouseScroll to the hover connection guard in preferredInputChanged():
-- Before
if isMouseKeyboard then
connectHotbarHoverConnections()
-- After
if isMouseKeyboard and Settings.Gameplay.MouseScroll then
connectHotbarHoverConnections()This ensures hover connections are only created when the feature is enabled. No additional cleanup changes are needed — existing nil guards handle the case where connections were never created.