# Camera.ScrollX affecting pointer coordinates / Phaser.Geom.Line?

**URL:** <https://phaser.discourse.group/t/camera-scrollx-affecting-pointer-coordinates-phaser-geom-line/1780>\
**Category:** Phaser 3\
**Created:** [March 21, 2019, 8:39pm UTC](https://phaser.discourse.group/t/camera-scrollx-affecting-pointer-coordinates-phaser-geom-line/1780 "2019-03-21T20:39:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kosmoskolio](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kosmoskolio/32/1643_2.png) [@kosmoskolio](https://phaser.discourse.group/u/kosmoskolio)\
**Post date:** [March 21, 2019, 8:39pm UTC](https://phaser.discourse.group/t/camera-scrollx-affecting-pointer-coordinates-phaser-geom-line/1780/1 "2019-03-21T20:39:48Z")

</div>

When the whole scene is visible, the Phaser.Geom.Line is being drawn properly.  
When the camera only “sees” part of the scene, the Phaser.Geom.Line is being drawn at an unexpected position.

![com-crop](https://global.discourse-cdn.com/free1/uploads/phaser1/original/1X/17c48df57d1c917bde25a190bb7730da9c578382.gif)

I want to understand where does the difference come from?

EDIT: if i use dragX and dragY for the start / end positions of the line the results are even weirder.

EDIT 2: I fixed it by adding this.camera.scrollX to the line coordinates.
