We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bec343d commit baa541dCopy full SHA for baa541d
packages/utils/src/scrollTo.ts
@@ -34,7 +34,6 @@ export function scrollTo(
34
const top = options.top;
35
const left = options.left;
36
const distance = Math.max(isNumber(top) ? Math.abs(top - startTop) : 0, isNumber(left) ? Math.abs(left - startLeft) : 0);
37
- console.log(Math.min(distance / (isNumber(top) ? el.clientHeight : el.clientWidth), 1));
38
const during = Math.max(
39
Math.sin((Math.PI / 2) * Math.min(distance / (isNumber(top) ? el.clientHeight : el.clientWidth), 1)) *
40
(options.during ?? MAX_DURING_TIME),
0 commit comments