diff --git a/src/context/animatedValueContext.tsx b/src/context/animatedValueContext.tsx index 6ff1ed5f..c615753b 100644 --- a/src/context/animatedValueContext.tsx +++ b/src/context/animatedValueContext.tsx @@ -89,6 +89,19 @@ function useSetupAnimatedValues() { return isTouchActiveNative.value && activeIndexAnim.value >= 0; }, []); + useAnimatedReaction( + () => { + return outerScrollOffset.value; + }, + (cur, prev) => { + if (isDraggingCell.value) { + return; + } + outerScrollInit.value = cur; + }, + [outerScrollInit, isDraggingCell] + ); + const autoScrollDistance = useDerivedValue(() => { if (!isDraggingCell.value) return 0; const innerScrollDiff = scrollOffset.value - scrollInit.value;