A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
enable direction lock
ammarahm-edc014f762601e
diff --git a/apps/mobile/src/components/list/index.js b/apps/mobile/src/components/list/index.jsindex 45310a4f3..ef1c73550 100644--- a/apps/mobile/src/components/list/index.js+++ b/apps/mobile/src/components/list/index.js@@ -127,6 +127,7 @@ const List = ({onMomentumScrollEnd={() => {tabBarRef.current?.unlock();}}+ directionalLockEnabled={true}initialNumToRender={10}keyboardShouldPersistTaps="always"keyboardDismissMode="interactive"diff --git a/apps/mobile/src/components/tabs/index.tsx b/apps/mobile/src/components/tabs/index.tsxindex 29ff372f5..b16998aa8 100644--- a/apps/mobile/src/components/tabs/index.tsx+++ b/apps/mobile/src/components/tabs/index.tsx@@ -202,8 +202,8 @@ export const FluidTabs = forwardRef<TabsRef, TabProps>(const gesture = Gesture.Pan().maxPointers(1).enabled(enabled && !disabled)- .activeOffsetX([-10, 10])- .failOffsetY([-10, 10])+ .activeOffsetX([-1, 1])+ .failOffsetY([-1, 1]).onBegin(event => {locked.value = false;gestureStartValue.value = {@@ -223,6 +223,7 @@ export const FluidTabs = forwardRef<TabsRef, TabProps>(// if vy is greater than vx, user is swiping vertically. lock swiping.if (vy > vx) locked.value = true;// if dividend of vx/vy is less than 4, user is swiping diagonally. lock swiping+ console.log(vx / vy);if (vx / vy < 4) locked.value = true;startX.value = translateX.value;})