refactor: getRelativePosition pageX

* Mainly style
* add pageX default value 0