Skip to content

Commit

Permalink
Merge branch 'main' into windowscroller-imperative-scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
herschelrs committed Nov 15, 2024
2 parents 0150cb4 + e4e7211 commit 3d8a7d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ export const createWindowScroller = (
isHorizontal: boolean,
offset: number = 0
): number => {
window = getCurrentWindow(getCurrentDocument(node))

// TODO calc offset only when it changes (maybe impossible)
const offsetKey = isHorizontal ? "offsetLeft" : "offsetTop";
const offsetSum =
Expand Down

0 comments on commit 3d8a7d5

Please sign in to comment.