Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/context/animatedValueContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ function useSetupAnimatedValues<T>() {
return isTouchActiveNative.value && activeIndexAnim.value >= 0;
}, []);

useAnimatedReaction(
() => {
return outerScrollOffset.value;
},
(cur, prev) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second parameter here doesn't seem to be used, and can be safely removed.

if (isDraggingCell.value) {
return;
}
outerScrollInit.value = cur;
},
[outerScrollInit, isDraggingCell]
);

const autoScrollDistance = useDerivedValue(() => {
if (!isDraggingCell.value) return 0;
const innerScrollDiff = scrollOffset.value - scrollInit.value;
Expand Down