pixi-viewport icon indicating copy to clipboard operation
pixi-viewport copied to clipboard

mouseEdges continues to pan even when mouse pointer is outside stage.

Open DanielJoyce opened this issue 5 years ago • 3 comments
trafficstars

This includes going to the titlebar of the browser, etc.

There should at least be an option to set the event to only fire on the screen bounds.

DanielJoyce avatar Apr 08 '20 04:04 DanielJoyce

Apprently can be fixed with app.renderer.plugins.interaction.moveWhenInside = true;

Yep, that works.

DanielJoyce avatar Apr 08 '20 04:04 DanielJoyce

I take it back, if I cross the border of the pixi canvas slow enough, then mouseEdges still moves. This might be a bug in pixi5 though

DanielJoyce avatar Apr 08 '20 04:04 DanielJoyce

Ideally this can be fixed by adding an optional second boundary to mouseEdges that provides an outside boundary for the mouseEdges hittest. Would that help?

davidfig avatar Apr 20 '20 01:04 davidfig