From 04f3330eb27d993894ebd2ac5db14fabce1adfa3 Mon Sep 17 00:00:00 2001 From: xinaris Date: Thu, 29 Sep 2022 23:56:14 +0300 Subject: [PATCH] Removed duplicate identifier preventScrollOnTouch preventScrollOnTouch is set twice in the file causing an error when used in a Typescript project --- src/tiny-slider.d.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/tiny-slider.d.ts b/src/tiny-slider.d.ts index 62fa6bc2..e39d4f7f 100644 --- a/src/tiny-slider.d.ts +++ b/src/tiny-slider.d.ts @@ -235,12 +235,7 @@ export interface TinySliderSettings extends CommonOptions { * Prevent next transition while slider is transforming. * @defaultValue false */ - preventActionWhenRunning?: boolean - /** - * Prevent page from scrolling on touchmove. If set to "auto", the slider will first check if the touch direction matches the slider axis, then decide whether prevent the page scrolling or not. If set to "force", the slider will always prevent the page scrolling. - * @defaultValue false - */ - preventScrollOnTouch?: "auto" | "force" | false; + preventActionWhenRunning?: boolean; /** * Difine the relationship between nested sliders. * Make sure you run the inner slider first, otherwise the height of the inner slider container will be wrong.