MouseEnter and MouseLeave fire with LMB

As the title suggests, the MouseEnter and MouseLeave events are now firing when LMB is pressed and released. This has broken my UI script as it relies on those events to know what button the mouse is over when released. It’s also causing some graphical anomalies in my UI as well. This bug only occurs on the Client, it doesn’t happen in the Studio.

You can see here in the log that mouseEnter prints before and after LMB_Down. And mouseLeave prints before LMB_Up:
temp1

Graphical anomaly

Me clicking on an item; you can see the drop menu is flickering as if the mouse is entering the frame and leaving again:
tempg

Versus the same action in Studio:
tempg2

Hope this can be fixed soon! Thanks.

5 Likes

I can’t seem to replicate this, here’s the reproduction I’ve attempted to create - can you see if I’m doing something different than you?

MouseEnter_MouseDown_Anomaly.rbxl (15.1 KB)

Did you try to replicate it using the Studio or the Client? Just tested what you’ve attached and replicated the bug.

I’ve uploaded it here if you want to quickly try it: testing - Roblox

I’ve been running it on the client and have yet to replicate it - just figure a proper way to replicate might help the engineering team. To be clear, clicking on this UI button should theoretically trigger MouseEnter and MouseLeave correct?

Also, that place isn’t uncopylocked.

Not in the studio. It works fine there. If you play the test place and try it there you can replicate the bug viewing the console.

I can’t join the test place.

Oops, my apologies. Should work now.

Oh wow, yeah. I see what you mean. This definitely needs to be fixed. It’s strange that it doesn’t work on clients in studio.

Sorry for the confusion. I’m still unsure what to call the other client haha.

My game is suffering from this too.

I use a double-click to confirm some UI actions, using MouseLeave to detect them opting out.

Because of this, players can no longer confirm their actions.

Looking into this, should be fixed soon

2 Likes

I am getting similar issues (Place) - Players cannot get the rightclick menu to open on items, which is just tied to MouseButton2Click. Players found a work around that holding left click then right clicking works, but I was also able to fix it by changing MouseButton2Click to MouseButton2Down.

3 Likes

As of a couple days ago, players on mobile seem to be unable to tap buttons on my shop, PC users can do this just fine. I use the MouseButton1Click event for this. Could this be related?

1 Like

This issue should be fixed now

1 Like