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

**URL:** <https://phaser.discourse.group/t/fix-for-camera-scrollx-scrolly-weird-behaviour-when-moving-mouse-slowly/15361>\
**Category:** Phaser 3\
**Created:** [May 30, 2025, 3:33am UTC](https://phaser.discourse.group/t/fix-for-camera-scrollx-scrolly-weird-behaviour-when-moving-mouse-slowly/15361 "2025-05-30T03:33:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdgao](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/tdgao/32/7797_2.png) [@tdgao](https://phaser.discourse.group/u/tdgao)\
**Post date:** [May 30, 2025, 3:33am UTC](https://phaser.discourse.group/t/fix-for-camera-scrollx-scrolly-weird-behaviour-when-moving-mouse-slowly/15361/1 "2025-05-30T03:33:28Z")

</div>

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](https://rexrainbow.github.io/phaser3-rex-notes/docs/site/gesture-pan/#create-instance)) 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](https://codepen.io/samme/pen/GRKbxab)
