pixi-viewport
pixi-viewport copied to clipboard
mouseEdges continues to pan even when mouse pointer is outside stage.
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.
Apprently can be fixed with app.renderer.plugins.interaction.moveWhenInside = true;
Yep, that works.
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
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?