Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix switching device mode while in fullscreen mode

Ammar Ahmed8c2a55761818
diff --git a/apps/mobile/app/navigation/fluid-panels-view.tsx b/apps/mobile/app/navigation/fluid-panels-view.tsx
index e15b71c38..eef4f57f4 100644
--- a/apps/mobile/app/navigation/fluid-panels-view.tsx
+++ b/apps/mobile/app/navigation/fluid-panels-view.tsx
@@ -201,7 +201,7 @@ export const FluidPanelsView = React.memo(
(current: string | null, size: { width: number; height: number }) => {
setDeviceModeState(current);
- if (fullscreen && current !== "mobile") {
+ if (fullscreen && current === "mobile") {
eSendEvent(eCloseFullscreenEditor, current);
}
@@ -214,8 +214,6 @@ export const FluidPanelsView = React.memo(
case "smallTablet":
if (!fullscreen) {
fluidTabsRef.current?.closeDrawer(false);
- } else {
- fluidTabsRef.current?.openDrawer(false);
}
break;
case "mobile":
@@ -233,7 +231,7 @@ export const FluidPanelsView = React.memo(
}
break;
}
- }, 400);
+ }, 0);
},
[deviceMode, fullscreen, setDeviceModeState]
);