@kud/ink-ui 0.20.0 → 0.20.1
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.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -655,10 +655,10 @@ var ScrollView = ({
|
|
|
655
655
|
] });
|
|
656
656
|
};
|
|
657
657
|
var GAP = 2;
|
|
658
|
-
var SLIDE_STEPS =
|
|
659
|
-
var SLIDE_MS =
|
|
658
|
+
var SLIDE_STEPS = 12;
|
|
659
|
+
var SLIDE_MS = 28;
|
|
660
660
|
var between = (from, to, t) => {
|
|
661
|
-
const ease = 1 - Math.pow(
|
|
661
|
+
const ease = t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
|
|
662
662
|
const lerp = (a, b) => Math.round(a + (b - a) * ease);
|
|
663
663
|
const left = lerp(from.start, to.start);
|
|
664
664
|
const right = lerp(from.start + from.width, to.start + to.width);
|