Skip to main content
ElementDraggerOptions
Options for an ElementDragger
NameTypeDescription
constrain?ConstrainFunction<BrowserElement,MouseEvent>Function to constrain movement of the elements.
containment?ContainmentTypeShortcut for some basic constrain scenarios - constrain to parent, constrain entirely to parent, dont allow movement into negative axes.
containmentPadding?numberIf containment is set, you can provide a value for padding here. Currently the default is 5 pixels.
filter?stringCSS3 filter identifying parts of the elements that should not allow drag