[fixed] Window.onmousedown bug since Neon Coast

Describe the bug:
onmousedown and onmouseup only fire once in widgets (experienced in quick preview and preview on a new server). So as soon as I left click on a div with those events, it will call the onmousedown and onmouseup function once. Additional clicks will not do anything. The only workaround is to press left alt (so the console goes into advanced mode). While having the console in advanced mode, those two events will work as expected. After pressing left alt again to disable the advanced console, onmousedown and onmouseup will again only be able to fire one more time, but then not work anymore until the advanced console is triggered again.

How do you cause this bug?
Add a widget with an onmousedown event.
Go into preview and click multiple times on it.
It will only trigger on the first click.

Screenshots / video of bug:

  • soon
    To see it, just print console output inside an onmousedown function.

Which platform: PC

Which input: mouse

Your Crayta username:

Game seen in (including “Hub” or “Editor for XYZ”):
Every game/creation

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible):

1 Like

Hello Ya_shi_shi,

Thank you for reporting this issue to us.
I have submitted a ticket to our internal team. :blush:

from discord:
i did some testing. the controller primary and secondary buttons register on release every time. the mouse primary and secondary only once.
if the controller primary button is released, the mouse will register only one release after that. same with secondary button.


Can confirm this bug from trying to get RightClick working on my Minesweeper Package.

1 Like

Good morning @sinjin and @Vilva! :sun_with_face:

I grabbed the info you guys gave me and updated the issue! Thank you very much for the heads up! :slight_smile:

Seems fixed

1 Like