When bounds
are applied, maxX
refers to the maximum "legal" value of the horizontal property (either "x" or "left", depending on which type
the Draggable is). This makes it easier to run your own custom logic inside the snap
or callback function(s) if you so choose. So for a Draggable oftype:"x,y"
, maxX
would correlate with x
transform translation, as in the css transform:translateX(...)
. For type:"top,left"
, the Draggable'smaxX
would correlate with the css "left"
value that's applied. This is not the global coordinate - it is the inline css-related value applied to the element.
Implementation public function get maxX():Number
GreenSock Docs (HTML5/JS)
Draggable
.maxX
.maxX : Number
[read-only] When bounds are applied, maxX refers to the maximum "legal" value of the horizontal property (either "x" or "left", depending on which type the Draggable is).
