Mouse not active outside the game (outside the canvas area)


I integrate my first game in a web page.
I’ve a problem, the mouse is inactive outside the canvas area.

I can move the mouse, but clicks do nothing.

I try on index.html generate by gdevelop export, it’s the same problem.

How can it be possible to active click outside canvas area, at least at the end of the game.

Note that my game does not use the mouse, but maybe in the future.

Thanks for your help.


I’ve found !
In main function (file index.html)

modify : game.getRenderer().bindStandardEvents(game.getInputManager(), window, document);
to : game.getRenderer().bindStandardEvents(game.getInputManager(), canvasArea, document);

So now, click outside the game are active.