TagSpaces is an offline, open source, document manager with tagging support
fix: disable back gesture maclike
Ilian Sapundshieve324ac0ad7a0
diff --git a/app/app.global.css b/app/app.global.cssindex c425a0833..6780f508c 100644--- a/app/app.global.css+++ b/app/app.global.css@@ -16,3 +16,8 @@ div[tabindex='-1']:focus {.tagspaces-main-color {color: #1dd19f;}++html,+body {+ overscroll-behavior-x: none;+}diff --git a/app/containers/Root.tsx b/app/containers/Root.tsxindex 13686cae7..83d9426fa 100644--- a/app/containers/Root.tsx+++ b/app/containers/Root.tsx@@ -40,21 +40,21 @@ type RootType = {persistor: {};};-function disableBackGestureMac() {- if (AppConfig.isMacLike) {- const element = document.getElementById('root');- element.addEventListener('touchstart', (e: MouseEvent) => {- // is not near edge of view, exit- // if (e.pageX > 10 && e.pageX < window.innerWidth - 10) return;+// function disableBackGestureMac() {+// if (AppConfig.isMacLike) {+// const element = document.getElementById('root');+// element.addEventListener('touchstart', (e: MouseEvent) => {+// // is not near edge of view, exit+// if (e.pageX > 10 && e.pageX < window.innerWidth - 10) return;- // prevent swipe to navigate gesture- e.preventDefault();- });- }-}+// // prevent swipe to navigate gesture+// e.preventDefault();+// });+// }+// }function onBeforeLift(store) {- disableBackGestureMac();+ // disableBackGestureMac();store.dispatch(SettingsActions.setZoomRestoreApp());store.dispatch(SettingsActions.upgradeSettings()); // TODO call this only on app version update