Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix drawer open animation velocity

Ammar Ahmed90810126736f
diff --git a/apps/mobile/app/components/fluid-panels/index.tsx b/apps/mobile/app/components/fluid-panels/index.tsx
index 17dd5474b..48ed95b46 100644
--- a/apps/mobile/app/components/fluid-panels/index.tsx
+++ b/apps/mobile/app/components/fluid-panels/index.tsx
@@ -354,8 +354,9 @@ export const FluidPanels = forwardRef<TabsRef, TabProps>(function FluidTabs(
const finalValue = isSwipeLeft
? translateX.value - velocityX / 40.0
: translateX.value + velocityX / 40.0;
+ const velocity = velocityX / 5000;
const animationConfig: WithSpringConfig = {
- velocity: velocityX / 10,
+ velocity: velocity,
...SnappySpringConfig
};