Skip to content

Commit 4d0bc37

Browse files
committed
Don't align edit composer to bottom on mWeb
1 parent 466f00c commit 4d0bc37

File tree

1 file changed

+0
-7
lines changed
  • src/hooks/useReportScrollManager

1 file changed

+0
-7
lines changed

src/hooks/useReportScrollManager/index.ts

-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {useCallback, useContext} from 'react';
2-
import {isMobile} from '@libs/Browser';
32
import {ActionListContext} from '@pages/home/ReportScreenContext';
43
import type ReportScrollManagerData from './types';
54

@@ -15,12 +14,6 @@ function useReportScrollManager(): ReportScrollManagerData {
1514
return;
1615
}
1716

18-
// On mobile we want the edit composer to always be at the bottom
19-
if (isMobile()) {
20-
flatListRef.current.scrollToIndex({index, animated: true, viewPosition: 0});
21-
return;
22-
}
23-
2417
if (!viewableItemsIndexes.current.includes(index)) {
2518
const biggestVisibleIndex = viewableItemsIndexes.current.at(viewableItemsIndexes.current.length - 1) ?? 0;
2619
// viewPosition determines the alignment of the item in the view: 0 for top, 1 for bottom, and 0.5 for center.

0 commit comments

Comments
 (0)