From 16df02645c36a10c15f2121828616a4341410030 Mon Sep 17 00:00:00 2001 From: reppners Date: Tue, 5 Sep 2017 22:09:48 +0200 Subject: [PATCH] docs(README): update readme to include `holdToDrag` option --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e5973cd..5a1f872 100644 --- a/README.md +++ b/README.md @@ -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