about summary refs log tree commit diff
path: root/src/screens
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-04-28 17:48:20 +0100
committerGitHub <noreply@github.com>2024-04-28 17:48:20 +0100
commit1dd3d6657c631905c27fa6af326d31a0f7c6039e (patch)
tree01b5e2997e2fd7172a8f6ee11ca525f114593541 /src/screens
parent3b4848ba59591b58a95c61af210697149a858f57 (diff)
downloadvoidsky-1dd3d6657c631905c27fa6af326d31a0f7c6039e.tar.zst
Account for momentum when hiding minimal shell (#3740)
* 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
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/Profile/Sections/Labels.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screens/Profile/Sections/Labels.tsx b/src/screens/Profile/Sections/Labels.tsx
index f43e3633d..553d94d2e 100644
--- a/src/screens/Profile/Sections/Labels.tsx
+++ b/src/screens/Profile/Sections/Labels.tsx
@@ -123,6 +123,9 @@ export function ProfileLabelsSectionInner({
     onScroll(e, ctx) {
       contextScrollHandlers.onScroll?.(e, ctx)
     },
+    onMomentumEnd(e, ctx) {
+      contextScrollHandlers.onMomentumEnd?.(e, ctx)
+    },
   })
 
   const {labelValues} = labelerInfo.policies