Skip to content

Commit

Permalink
Merge pull request #58219 from callstack-internal/fix-blocked-scrolli…
Browse files Browse the repository at this point in the history
…ng-event-in-reports-list

[CP Staging] fix: blocked scrolling event in reports list

(cherry picked from commit 54c5a26)

(CP triggered by mountiny)
  • Loading branch information
mountiny authored and OSBotify committed Mar 11, 2025
1 parent f9be330 commit 9f4792e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/pages/home/report/ReportActionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ function ReportActionsList({
const [reportNameValuePairs] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID}`);
const [accountID] = useOnyx(ONYXKEYS.SESSION, {selector: (session) => session?.accountID});
const participantsContext = useContext(PersonalDetailsContext);
const [scrollOffset, setScrollOffset] = useState(0);

useEffect(() => {
const unsubscriber = Visibility.onVisibilityChange(() => {
Expand Down Expand Up @@ -514,7 +513,6 @@ function ReportActionsList({
};

const trackVerticalScrolling = (event: NativeSyntheticEvent<NativeScrollEvent>) => {
setScrollOffset(event.nativeEvent.contentOffset.y);
scrollingVerticalOffset.current = event.nativeEvent.contentOffset.y;
handleUnreadFloatingButton();
onScroll?.(event);
Expand Down Expand Up @@ -710,14 +708,6 @@ function ReportActionsList({

const onEndReached = useCallback(() => {
loadOlderChats(false);

requestAnimationFrame(() => {
reportScrollManager.ref?.current?.scrollToOffset({
offset: scrollingVerticalOffset.current - scrollOffset,
animated: false,
});
});
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
}, [loadOlderChats]);

// Parse Fullstory attributes on initial render
Expand Down

0 comments on commit 9f4792e

Please sign in to comment.