-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
/
Copy pathfree-mode.d.ts
59 lines (50 loc) · 1.09 KB
/
free-mode.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
export interface FreeModeMethods {
onTouchMove(): void;
onTouchEnd(): void;
}
export interface FreeModeEvents {}
export interface FreeModeOptions {
enabled?: boolean;
/**
* If enabled, then slide will keep moving for a while after you release it
*
* @default true
*/
momentum?: boolean;
/**
* Higher value produces larger momentum distance after you release slider
*
* @default 1
*/
momentumRatio?: number;
/**
* Higher value produces larger momentum velocity after you release slider
*
* @default 1
*/
momentumVelocityRatio?: number;
/**
* Set to `false` if you want to disable momentum bounce in free mode
*
* @default true
*/
momentumBounce?: boolean;
/**
* Higher value produces larger momentum bounce effect
*
* @default 1
*/
momentumBounceRatio?: number;
/**
* Minimum touchmove-velocity required to trigger free mode momentum
*
* @default 0.02
*/
minimumVelocity?: number;
/**
* Set to enabled to enable snap to slides positions in free mode
*
* @default false
*/
sticky?: boolean;
}