Capítulo 199 de 411

Chapter 199: Draggable.endDrag()

Core Idea

Forces the Draggable to immediately stop an in-progress drag, as if the pointer were released; must be passed the original mouse/touch event (Draggable inspects it for pageX/pageY/target).

Reference Tables

ParameterTypeDescription
eventObjectthe original mouse or touch event that should trigger the stop

Key Takeaways

  1. Different from disable(): endDrag() only stops the current drag gesture (like a release), it doesn't prevent future drags the way disable() does.

Connects To

  • Draggable.disable(): fully shuts down future dragging, unlike this one-time stop.