pixso.mouse
The pixso.mouse
object contains an interface for reading mouse coordinates.
viewportX
- Readonly:
true
viewportX
gets the X-coordinate of the mouse canvas (reference to the horizontal coordinate of the ruler).
viewportY
- Readonly:
true
viewportX
gets the mouse's canvas y coordinate (refer to the vertical coordinate of the ruler).
clientX
- Readonly:
true
viewportX
gets the horizontal distance of the mouse relative to the upper left corner of the browser's viewable area.
clientY
- Readonly:
true
What you get is the vertical distance of the mouse relative to the upper left corner of the browser's viewable area.
screenX
- Readonly:
true
You get the horizontal distance of the mouse relative to the upper left corner of the screen.
screenY
- Readonly:
true
What you get is the vertical distance of the mouse relative to the upper left corner of the screen.