Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(mobile): sidebar navigation ignoring the animations option
Elian Doran9fbf2d54c4f5
diff --git a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsxindex 0a3fee1adc..557b5cfaf1 100644--- a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx+++ b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx@@ -161,6 +161,7 @@ export default function MobileNoteNavigator() {const direction = directionRef.current;directionRef.current = null;if (!direction || !bodyRef.current) return;+ if (document.body.classList.contains("motion-disabled")) return;const offset = direction === "forward" ? "60%" : "-60%";bodyRef.current.animate([