Skip to main content

Home > @jsplumbtoolkit/browser-ui > SurfaceMagnetizeOptions > repositionDraggedElement

SurfaceMagnetizeOptions.repositionDraggedElement property#

If true, and afterDrag is true, when the magnetizer is run after a drag it will be the recently dragged element that moves in precedence to the other elements. By default, the recently dragged element is _not_ moved by the magnetize operation - it stays where you dragged it.

Signature:

repositionDraggedElement?: boolean;