Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Oct 4, 2023
1 parent f57fd17 commit 8bd37cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export const createWindowScroller = (
_initRoot(rootElement) {
let visible = false;

// TODO calc offset only when it changes (maybe impossible)
const getOffsetToWindow = (node: HTMLElement, offset: number): number => {
const nodeOffset = offset + node[offsetKey];

Expand Down

0 comments on commit 8bd37cf

Please sign in to comment.