Snake control is interrupted while hovering over other GUI elements
Closed this issue · 3 comments
Dionysusnu commented
When the mouse cursor is on top of other GUI elements (so far confirmed: Chat window; Popup notifications), the snake will no longer react to the mouse, and instead go straight in its current direction.
Dionysusnu commented
I think the fix might be setting a high ZIndex on InputCapture
?
NeoInversion commented
Will require getting the mouse position some other way (useMouse
from React hooks). To keep Hoarcekat working check if running in studio.
littensy commented
I think the fix might be setting a high ZIndex on
InputCapture
?
I decided to have InputCapture use UserInputService instead of a Frame if it's being used in a running game. The original purpose of the component was to listen to user input events from the Hoarcekat plugin window, so it should be fine.