Jump to content
GreenSock

DraggablePlugin

.pointerX

.pointerX : Number

[read-only] The x (horizontal) position of the pointer (mouse or touch) associated with the Draggable's last event (like event.pageX).

Details

Number - The x (horizontal) position of the pointer (mouse or touch) associated with the Draggable’s last event (like event.pageX). In most cases, this should be used instead of using the event’s .pageX because GSAP tries to normalize positioning across all browsers.

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×