From d30f8e8d8a4d68d80b09c6b2a6787f74bcb99b4e Mon Sep 17 00:00:00 2001 From: celine Date: Mon, 17 Nov 2025 18:49:29 -0500 Subject: [PATCH] oops console logs --- src/utils/scrollIntoViewIfNeeded.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/utils/scrollIntoViewIfNeeded.ts b/src/utils/scrollIntoViewIfNeeded.ts index c9ada15c..b410647b 100644 --- a/src/utils/scrollIntoViewIfNeeded.ts +++ b/src/utils/scrollIntoViewIfNeeded.ts @@ -4,8 +4,6 @@ export function scrollIntoViewIfNeeded( behavior?: ScrollBehavior, rootBottomMargin?: number, ) { - console.log("this should scroll up now!"); - if (!el) { return; } @@ -31,10 +29,6 @@ export function scrollIntoViewIfNeeded( let scrollContainer = getScrollParent(el); let scrollContainerHeight = scrollContainer.clientHeight; let distanceFromBottom = scrollContainerHeight - rect.bottom; - - console.log("containerHeight: " + scrollContainerHeight); - console.log("el bottom: " + rect.bottom); - scrollContainer.scrollBy({ top: Math.abs(rootBottomMargin + distanceFromBottom), behavior: behavior ? behavior : "auto", -- 2.51.2