diff options
author | duarm <duarm0@disroot.org> | 2023-12-31 16:15:38 -0300 |
---|---|---|
committer | duarm <duarm0@disroot.org> | 2023-12-31 16:15:38 -0300 |
commit | 000681b25e4909dcafa2671133615e71f243a82d (patch) | |
tree | bc40f25da7edc33011cab229867632741ad31416 /resources/qml | |
parent | Translated using Weblate (Portuguese (Portugal)) (diff) | |
download | nheko-000681b25e4909dcafa2671133615e71f243a82d.tar.xz |
disable swipe motions toggle
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/TimelineDefaultMessageStyle.qml | 1 | ||||
-rw-r--r-- | resources/qml/components/AdaptiveLayout.qml | 2 |
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 |