about summary refs log tree commit diff
path: root/src/view/com
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-11-26 23:56:57 +0000
committerGitHub <noreply@github.com>2024-11-26 23:56:57 +0000
commit2c2d12b3949dfbb26e8fadecfe9dfecfe3f6962d (patch)
treeb8d4ad6ebdf1f1c421f15eccec87189966c37838 /src/view/com
parent736ea3f49d3500af1d41bb6ae54862acea40d056 (diff)
downloadvoidsky-2c2d12b3949dfbb26e8fadecfe9dfecfe3f6962d.tar.zst
Fix stutter when swiping feeds on Android (#6765)
Diffstat (limited to 'src/view/com')
-rw-r--r--src/view/com/util/MainScrollProvider.tsx4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/view/com/util/MainScrollProvider.tsx b/src/view/com/util/MainScrollProvider.tsx
index 0d084993b..42b2e12df 100644
--- a/src/view/com/util/MainScrollProvider.tsx
+++ b/src/view/com/util/MainScrollProvider.tsx
@@ -1,7 +1,6 @@
 import React, {useCallback, useEffect} from 'react'
 import {NativeScrollEvent} from 'react-native'
 import {
-  cancelAnimation,
   interpolate,
   makeMutable,
   useSharedValue,
@@ -43,7 +42,6 @@ export function MainScrollProvider({children}: {children: React.ReactNode}) {
   const setMode = React.useCallback(
     (v: boolean) => {
       'worklet'
-      cancelAnimation(headerMode)
       headerMode.set(v ? V1.get() : V0.get())
     },
     [headerMode],
@@ -149,8 +147,6 @@ export function MainScrollProvider({children}: {children: React.ReactNode}) {
         const newValue = clamp(startModeValue + dProgress, 0, 1)
         if (newValue !== headerMode.get()) {
           // Manually adjust the value. This won't be (and shouldn't be) animated.
-          // Cancel any any existing animation
-          cancelAnimation(headerMode)
           headerMode.set(newValue)
         }
       } else {