Use this to set limit the draggable object to only move horizontally or vetically.
- 1 - Add the behavior
LimitDragAndDropto any object. - 2 - In your events add one of the two available actions.
Limit to move only horizontallyLimit to move only vertically