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

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

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.