Capítulo 208 de 411

Chapter 208: Draggable.lockedAxis

Core Idea

Read-only; reports which axis ("x" or "y") got locked for the current drag when lockAxis is enabled — populated only after the user's initial movement reveals a direction, not immediately on press.

Key Takeaways

  1. An onLockAxis callback can notify you the moment the axis actually gets determined.

Connects To

  • Draggable.lockAxis: the setting that enables this locking behavior.