Skip to content

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

fix swipe location in editor

ammarahm-ed76042b55abbe
diff --git a/apps/mobile/initializer.root.js b/apps/mobile/initializer.root.js
index 112f61207..16f1cbcbe 100644
--- a/apps/mobile/initializer.root.js
+++ b/apps/mobile/initializer.root.js
@@ -161,11 +161,13 @@ const AppStack = React.memo(
const _responder = (e) => {
const swiperLeftAreaLocation = 60;
- const swiperRightAreaLocation = dimensions.width - 100;
+ const swiperRightAreaLocation = movedAway? dimensions.width - 150 : dimensions.width - 1;
let pageX = e.nativeEvent.pageX;
if (pageX <= swiperLeftAreaLocation || pageX >= swiperRightAreaLocation) {
+ console.log('true')
tabBarRef.current?.setScrollEnabled(true);
} else {
+ console.log('false')
tabBarRef.current?.setScrollEnabled(false);
}
return false;