summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2024-01-07 19:52:44 +0100
committerGitHub <noreply@github.com>2024-01-07 19:52:44 +0100
commit96c4d05730cc557722a31a0dd9036ac9e0744611 (patch)
treedfcc8472c6f70cdfd48a60583f659118cc584929 /resources/qml
parentRemove appveyor badge (diff)
parentlint (diff)
downloadnheko-96c4d05730cc557722a31a0dd9036ac9e0744611.tar.xz
Merge pull request #1649 from duarm/swipe-toggle
disable swipe motions toggle
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/TimelineDefaultMessageStyle.qml1
-rw-r--r--resources/qml/components/AdaptiveLayout.qml2
2 files changed, 2 insertions, 1 deletions
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