On Roblox mobile and PC, the MouseButton1Down
event is expected to trigger when a button is pressed and stop when the finger
or mouse is released, and the MouseButton1Up
event is expected to trigger upon release. However, if the user presses and holds the button, then drags their finger or mouse off the button to another area of the screen before releasing, the MouseButton1Down
event does not disconnect, and the MouseButton1Up
event does not fire at all.
Steps to Reproduce:
- Open a Roblox game on a mobile device.
- Create a GUI button with both
MouseButton1Down
andMouseButton1Up
connection scripts. - Press and hold the button to trigger
MouseButton1Down
. - While still holding, slide your finger or mouse off the button to another part of the screen.
- Release your finger or mouse.
Observed Behavior:
- The
MouseButton1Down
event remains active even after releasing the finger. or mouse - The
MouseButton1Up
event does not trigger upon release if the finger is not on the button nor the mouse.
System Information:
- Device: Samsung S23+ (Mobile) and Windows PC (AMD Ryzen 5600x 6-Core Processor, 16.0 GB RAM, AMD Radeon RX 6700 XT)
- Operating System: Samsung Galaxy S23+ (Mobile), Windows 10 (PC)
Expected behavior
- The
MouseButton1Down
event should disconnect when the finger or mouse is released, regardless of whether it remains on the button or has slid off. - The
MouseButton1Up
event should fire when the finger or mouse is released, regardless of its position relative to the button.