Html5 Problem with input when cursor leaves the project (DEF-1996)

HI

Problem with the input in html5 when the game is hosted on a third-party site. When I hold down the mouse button and move away the mouse pointer from the project, release the mouse button and return to the project - the game thinks that the mouse button is still pressed. This error is also present in Blossom’s Blast Saga

I use

if action_id == hash("touch") and action.value == 1 then

I’ve set up my settings

repeat_delay = 0.0
repeat_interval = 0.0

And I tried to use

if action_id == hash("touch") and action.repeted  then

And the problem is not solved (

Thanks!

1 Like

We have an issue in our backlog to continue to provide mouse events when the mouse is outside the window/canvas. DEF-1996

We’re planning a new sprint on Monday. Let me discuss the scope of this issue with the team and see if we can take a look at it during the sprint (next two weeks).

I’m not able to reproduce this. If I look at action.pressed, released and repeated and press inside and release outside the canvas and then move the mouse back I don’t get any problems with incorrect mouse pressed state.

1 Like