Skip to content

Commit

Permalink
docs(README): update readme to include holdToDrag option
Browse files Browse the repository at this point in the history
  • Loading branch information
reppners committed Sep 5, 2017
1 parent 0f2c642 commit 16df026
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export interface Config {
// hook for custom logic that can override the default action based on the original touch event when the drag never started
// be sure to call event.preventDefault() if handling the default action in the override to prevent the browser default.
defaultActionOverride?: (event: TouchEvent) => void;
// Drag action delay on touch devices ("hold to drag" functionality, useful for scrolling draggable items).
// Defaults to no delay.
holdToDrag?: number;
}

// invoke for initializing the polyfill => returns true if polyfill is applied
Expand Down

0 comments on commit 16df026

Please sign in to comment.