From 000681b25e4909dcafa2671133615e71f243a82d Mon Sep 17 00:00:00 2001 From: duarm Date: Sun, 31 Dec 2023 16:15:38 -0300 Subject: disable swipe motions toggle --- resources/langs/nheko_en.ts | 5 +++++ resources/qml/TimelineDefaultMessageStyle.qml | 1 + resources/qml/components/AdaptiveLayout.qml | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'resources') diff --git a/resources/langs/nheko_en.ts b/resources/langs/nheko_en.ts index e63a917b..71688c8f 100644 --- a/resources/langs/nheko_en.ts +++ b/resources/langs/nheko_en.ts @@ -4786,6 +4786,11 @@ Reason: %4 Touchscreen mode Touchscreen mode + + + Disable swipe motions + Disable swipe motions + Font size diff --git a/resources/qml/TimelineDefaultMessageStyle.qml b/resources/qml/TimelineDefaultMessageStyle.qml index 661aabdc..a4466442 100644 --- a/resources/qml/TimelineDefaultMessageStyle.qml +++ b/resources/qml/TimelineDefaultMessageStyle.qml @@ -272,6 +272,7 @@ TimelineEvent { DragHandler { id: replyDragHandler + enabled: !Settings.disableSwipe yAxis.enabled: false xAxis.enabled: true xAxis.minimum: wrapper.avatarMargin - 100 diff --git a/resources/qml/components/AdaptiveLayout.qml b/resources/qml/components/AdaptiveLayout.qml index 86a0d4b6..eb8ec341 100644 --- a/resources/qml/components/AdaptiveLayout.qml +++ b/resources/qml/components/AdaptiveLayout.qml @@ -126,7 +126,7 @@ Container { snapMode: ListView.SnapOneItem orientation: ListView.Horizontal highlightRangeMode: ListView.StrictlyEnforceRange - interactive: singlePageMode + interactive: !Settings.disableSwipe && singlePageMode highlightMoveDuration: (container.singlePageMode && !Settings.reducedMotion) ? 200 : 0 currentIndex: container.singlePageMode ? container.pageIndex : 0 boundsBehavior: Flickable.StopAtBounds -- cgit 1.4.1