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 574026f commit 8171dddCopy full SHA for 8171ddd
src/scrolling/scroll-into-view.ts
@@ -26,7 +26,7 @@ export function scrollIntoView(
26
27
if (onlyScrollIfNeeded && scrollbar.isVisible(elem)) return;
28
29
- const delta = alignToTop ? targetBounding.top - bounding.top - offsetTop : targetBounding.bottom - bounding.bottom - offsetBottom;
+ const delta = alignToTop ? targetBounding.top - bounding.top - offsetTop : targetBounding.bottom - bounding.bottom + offsetBottom;
30
31
scrollbar.setMomentum(
32
targetBounding.left - bounding.left - offsetLeft,
0 commit comments