about summary refs log tree commit diff
path: root/src/lib/ScrollContext.tsx
Commit message (Collapse)AuthorAgeFilesLines
* Add displayName to contexts (#8814)Samuel Newman2025-08-141-2/+3
|
* Account for momentum when hiding minimal shell (#3740)dan2024-04-281-1/+4
| | | | | | | | | * Add optional momentum events to scroll context * If there is a velocity, don't snap until momentum end * Don't show bar on scroll down * Rm onMomentumBegin
* Make scroll handling contextual (#2200)dan2023-12-131-0/+35
* Add an intermediate List component * Fix type * Add onScrolledDownChange * Port pager to use onScrolledDownChange * Fix on mobile * Don't pass down onScroll (replacement TBD) * Remove resetMainScroll * Replace onMainScroll with MainScrollProvider * Hook ScrollProvider to pager * Fix the remaining special case * Optimize a bit * Enforce that onScroll cannot be passed * Keep value updated even if no handler * Also memo it