Capítulo 203 de 411
Returns which direction the element is being/was dragged, measured from either the drag's start point (default), current velocity, or proximity to another element.
| Parameter | Type | Description |
|---|---|---|
| from | String | Element | "start" (default), "velocity", or a target element/selector to compare proximity against |
Returns one of: "left", "right", "up", "down", "left-up", "left-down", "right-up", "right-down".
getDirection("velocity") derives from.