Capítulo 230 de 411

Chapter 230: Draggable.x

Core Idea

Read-only; the current horizontal position (transform x for type:"x,y", or CSS left for type:"top,left"), updated live during drag and during the post-release momentum tween.

Key Takeaways

  1. Call update() to resync this value after an external change moves the element directly.

Connects To

  • Draggable.y: the corresponding vertical value.
  • Draggable.update(): resyncs this value with the DOM.