Skip to content

Interactions: distance and delay options are deprecated #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions entries/draggable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@
<desc>Sets the offset of the dragging helper relative to the mouse cursor. Coordinates can be given as a hash using a combination of one or two keys: <code>{ top, left, right, bottom }</code>.</desc>
</option>
<option name="delay" type="Number" default="0" example-value="300">
<deprecated>1.12</deprecated>
<desc>Time in milliseconds after mousedown until dragging should start. This option can be used to prevent unwanted drags when clicking on an element.</desc>
</option>
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="distance" type="Number" default="1" example-value="10">
<deprecated>1.12</deprecated>
<desc>Distance in pixels after mousedown the mouse must move before dragging should start. This option can be used to prevent unwanted drags when clicking on an element.</desc>
</option>
<option name="grid" type="Array" default="false" example-value="[ 50, 20 ]">
Expand Down
2 changes: 2 additions & 0 deletions entries/mouse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
<desc>Prevents interactions from starting on specified elements.</desc>
</option>
<option name="delay" type="Number" default="0" example-value="300">
<deprecated>1.12</deprecated>
<desc>Time in milliseconds after mousedown until the interaction should start. This option can be used to prevent unwanted interactions when clicking on an element.</desc>
</option>
<option name="distance" type="Number" default="1" example-value="10">
<deprecated>1.12</deprecated>
<desc>Distance in pixels after mousedown the mouse must move before the interaction should start. This option can be used to prevent unwanted interactions when clicking on an element.</desc>
</option>
</options>
Expand Down
2 changes: 2 additions & 0 deletions entries/resizable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@
</type>
</option>
<option name="delay" type="Number" default="0" example-value='150'>
<deprecated>1.12</deprecated>
<desc>Tolerance, in milliseconds, for when resizing should start. If specified, resizing will not start until after mouse is moved beyond duration. This can help prevent unintended resizing when clicking on an element.</desc>
</option>
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="distance" type="Number" default="1" example-value='30'>
<deprecated>1.12</deprecated>
<desc>Tolerance, in pixels, for when resizing should start. If specified, resizing will not start until after mouse is moved beyond distance. This can help prevent unintended resizing when clicking on an element.</desc>
</option>
<option name="ghost" type="Boolean" default="false" example-value='true'>
Expand Down
2 changes: 2 additions & 0 deletions entries/selectable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
<desc>Prevents selecting if you start on elements matching the selector.</desc>
</option>
<option name="delay" type="Integer" default="0" example-value='150'>
<deprecated>1.12</deprecated>
<desc>Time in milliseconds to define when the selecting should start. This helps prevent unwanted selections when clicking on an element.</desc>
</option>
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="distance" type="Number" default="0" example-value='30'>
<deprecated>1.12</deprecated>
<desc>Tolerance, in pixels, for when selecting should start. If specified, selecting will not start until the mouse has been dragged beyond the specified distance.</desc>
</option>
<option name="filter" type="Selector" default='"*"' example-value='"li"'>
Expand Down
2 changes: 2 additions & 0 deletions entries/sortable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@
<desc>Moves the sorting element or helper so the cursor always appears to drag from the same position. Coordinates can be given as a hash using a combination of one or two keys: <code>{ top, left, right, bottom }</code>.</desc>
</option>
<option name="delay" type="Integer" default="0" example-value='150'>
<deprecated>1.12</deprecated>
<desc>Time in milliseconds to define when the sorting should start. Adding a delay helps preventing unwanted drags when clicking on an element.</desc>
</option>
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="distance" type="Number" default="1" example-value='5'>
<deprecated>1.12</deprecated>
<desc>Tolerance, in pixels, for when sorting should start. If specified, sorting will not start until after mouse is dragged beyond distance. Can be used to allow for clicks on elements within a handle.</desc>
</option>
<option name="dropOnEmpty" type="Boolean" default="true" example-value='false'>
Expand Down