diff options
author | Lasath Fernando <devel@lasath.org> | 2020-04-28 00:29:51 -0700 |
---|---|---|
committer | Lasath Fernando <devel@lasath.org> | 2020-04-28 00:29:51 -0700 |
commit | 1555dc2296cbdc77797aa2f86cab8eaba5c913b1 (patch) | |
tree | 06654e5bf2d367160a7393802c0779719f24b21e /resources/qml/TimelineView.qml | |
parent | Send correct orientation for exif rotated images (diff) | |
download | nheko-1555dc2296cbdc77797aa2f86cab8eaba5c913b1.tar.xz |
Shamelessly steal `ScrollHelper.qml` from spectral
I mean, we're both GPL so... :P
Diffstat (limited to 'resources/qml/TimelineView.qml')
-rw-r--r-- | resources/qml/TimelineView.qml | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index cad341b5..ce8ad62c 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -116,19 +116,10 @@ Page { boundsBehavior: Flickable.StopAtBounds pixelAligned: true - MouseArea { - anchors.fill: parent - acceptedButtons: Qt.NoButton - propagateComposedEvents: true - z: -1 - onWheel: { - if (wheel.angleDelta != 0) { - chat.contentY = chat.contentY - wheel.angleDelta.y - wheel.accepted = true - chat.returnToBounds() - } - } - } + ScrollHelper { + flickable: parent + anchors.fill: parent + } Shortcut { sequence: StandardKey.MoveToPreviousPage |