On PC when you Interact with a TextButton it will Fire MouseEnter then MouseButton1Down
however on Touch devices it will Fire MouseButton1Down before MouseEnter which causes issues, preventing me from making good UIs and slowing down my game’s progress as a whole
(my cursor is offset in the video, you can thank Roblox for not working well with any Recording software)
You can test this in studio by using an Emulator and then observe the TextButton.Text or Output
Expected Behavior
Touch devices to Fire MouseEnter before MouseButton1Down
Actual Behavior
Touch devices will Fire MouseButton1Down before MouseEnter
Issue Area: Engine Issue Type: Other Impact: High Frequency: Constantly Date First Experienced: 2021-07-18 00:07:00 (+07:00) Date Last Experienced: 2021-07-18 00:07:00 (+07:00)
Basically from what I know the mobile mouse exists, it’s just left where the user has last placed their finger. Possibly dragging the finger to the TextButton/ImageButton could first trigger the MouseEnter event, but I am not sure about that. I still don’t understand the use of MouseEnter on touchscreen, but I guess it has their use.
As said, I can reproduce the issue.
Thanks for your report! This is something we can look into, but I am curious if this causes a bug for you? At a fundamental level touch input will be slightly different than actual mouse, as we don’t have the hover state with touch.
If you use the same code you wrote for PC on a touch device, does this cause issues in your experience?