Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3406589
D8271.id28393.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8271.id28393.diff
View Options
diff --git a/native/navigation/overlay-navigator.react.js b/native/navigation/overlay-navigator.react.js
--- a/native/navigation/overlay-navigator.react.js
+++ b/native/navigation/overlay-navigator.react.js
@@ -28,6 +28,7 @@
import type { OverlayRouterExtraNavigationHelpers } from './overlay-router.js';
import { scrollBlockingModals, TabNavigatorRouteName } from './route-names.js';
import { isMessageTooltipKey } from '../chat/utils.js';
+import { InputStateContext } from '../input/input-state.js';
export type OverlayNavigationHelpers<ParamList: ParamListBase = ParamListBase> =
{
@@ -155,8 +156,17 @@
}
return status;
};
- const [scrollBlockingModalStatus, setScrollBlockingModalStatus] =
+ const [rawScrollBlockingModalStatus, setScrollBlockingModalStatus] =
React.useState(() => getScrollBlockingModalStatus(scenes));
+
+ const inputState = React.useContext(InputStateContext);
+ const scrollBlockingModalStatus = React.useMemo(() => {
+ if (inputState?.editState.editedMessage !== null) {
+ return 'closed';
+ }
+ return rawScrollBlockingModalStatus;
+ }, [inputState?.editState, rawScrollBlockingModalStatus]);
+
const sceneDataForNewScene = scene => ({
...scene,
context: {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 5, 2:28 AM (14 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2615632
Default Alt Text
D8271.id28393.diff (1 KB)
Attached To
Mode
D8271: [native] Unblock scrolling when continuing editing
Attached
Detach File
Event Timeline
Log In to Comment