From 1dd3d6657c631905c27fa6af326d31a0f7c6039e Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 28 Apr 2024 17:48:20 +0100 Subject: 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 --- src/screens/Profile/Sections/Labels.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/screens/Profile/Sections/Labels.tsx') 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 -- cgit 1.4.1