Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: back gesture maclike

Ilian Sapundshiev0d860715e927
diff --git a/app/containers/Root.tsx b/app/containers/Root.tsx
index cd992f8e8..13686cae7 100644
--- a/app/containers/Root.tsx
+++ b/app/containers/Root.tsx
@@ -42,10 +42,10 @@ type RootType = {
function disableBackGestureMac() {
if (AppConfig.isMacLike) {
- const element = document.querySelector('body');
+ 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;
+ // if (e.pageX > 10 && e.pageX < window.innerWidth - 10) return;
// prevent swipe to navigate gesture
e.preventDefault();