mtrl-addons 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -584,6 +584,17 @@ export interface VListConfig<T extends ListItem = ListItem> {
584
584
  measureItems?: boolean;
585
585
  /** Stop scrolling when clicking on the viewport (default: true) */
586
586
  stopOnClick?: boolean;
587
+ /** Momentum configuration for touch/drag scrolling */
588
+ momentum?: {
589
+ /** How quickly velocity decreases per frame (0-1, higher = longer coast, default: 0.95) */
590
+ deceleration?: number;
591
+ /** Minimum velocity before stopping in px/ms (default: 0.1) */
592
+ minVelocity?: number;
593
+ /** Maximum gesture duration in ms to trigger momentum (default: 1000) */
594
+ maxDuration?: number;
595
+ /** Minimum velocity in px/ms to trigger momentum (default: 0.3) */
596
+ velocityThreshold?: number;
597
+ };
587
598
  };
588
599
  performance?: {
589
600
  recycleElements?: boolean;
@@ -57,6 +57,17 @@ export interface ViewportConfig {
57
57
  sensitivity?: number;
58
58
  /** Stop scrolling when clicking on the viewport (default: true) */
59
59
  stopOnClick?: boolean;
60
+ /** Momentum configuration for touch/drag scrolling */
61
+ momentum?: {
62
+ /** How quickly velocity decreases per frame (0-1, higher = longer coast, default: 0.95) */
63
+ deceleration?: number;
64
+ /** Minimum velocity before stopping in px/ms (default: 0.1) */
65
+ minVelocity?: number;
66
+ /** Maximum gesture duration in ms to trigger momentum (default: 1000) */
67
+ maxDuration?: number;
68
+ /** Minimum velocity in px/ms to trigger momentum (default: 0.3) */
69
+ velocityThreshold?: number;
70
+ };
60
71
  };
61
72
  scrollbar?: {
62
73
  enabled?: boolean;