Skip to content

refactor: Use isScrolling to simplify settle timer#17

Merged
arv merged 2 commits intomainfrom
arv/is-scrolling
Mar 12, 2026
Merged

refactor: Use isScrolling to simplify settle timer#17
arv merged 2 commits intomainfrom
arv/is-scrolling

Conversation

@arv
Copy link
Contributor

@arv arv commented Mar 12, 2026

No description provided.

arv added 2 commits March 12, 2026 12:48
- Clean up unused env vars in demo/.env
- Update ZeroProvider URL handling in demo/main.tsx
- Improve type definitions in vite-env.d.ts
- Update vite config for demo build
@arv arv requested a review from aboodman March 12, 2026 11:56
@arv arv merged commit 021f9ac into main Mar 12, 2026
2 checks passed
@arv arv deleted the arv/is-scrolling branch March 12, 2026 11:57
}
scrollOffsetRef.current = offset ?? undefined;
}, [virtualizer.scrollOffset, resetSettleTimer]);
setSettled(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this manually? on first read, this doesn't seem like it will work because it seems like setSettled(true) will cause a re-render which will immediate call setSettled(false). But I guess that doesn't happen because setted is not in the deps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants