aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 291d7c799..3b46f64f1 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -632,6 +632,7 @@ const easeFunc = (transition: 'ease' | 'linear' | undefined, currentTime: number
};
export function smoothScroll(duration: number, element: HTMLElement | HTMLElement[], to: number, transition: 'ease' | 'linear' | undefined, stopper?: () => void) {
+ console.log('smooth scroll');
stopper?.();
const elements = element instanceof HTMLElement ? [element] : element;
const starts = elements.map(element => element.scrollTop);