Fix for Camera scrollX/scrollY weird behaviour when moving mouse slowly

I just want to write this message for anyone who encounters the same issue as me because I spent over 4 full hours debugging this issue. If you are using any of the pan plugins (Pan - Notes of Phaser 3) or just changing camera.scrollX or camera.scrollY values to pan a game camera, make sure you also set camera.setRoundPixels(false). Setting it to false is not enough in the game config.

This example shows the bad behaviour when you try to pan slowly.
https://codepen.io/samme/pen/GRKbxab

1 Like