littensy/slither

Snake control is interrupted while hovering over other GUI elements

Closed this issue · 3 comments

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.

I think the fix might be setting a high ZIndex on InputCapture?

export function InputCapture({

Will require getting the mouse position some other way (useMouse from React hooks). To keep Hoarcekat working check if running in studio.

I think the fix might be setting a high ZIndex on InputCapture?

export function 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.