From 1555dc2296cbdc77797aa2f86cab8eaba5c913b1 Mon Sep 17 00:00:00 2001 From: Lasath Fernando Date: Tue, 28 Apr 2020 00:29:51 -0700 Subject: Shamelessly steal `ScrollHelper.qml` from spectral I mean, we're both GPL so... :P --- resources/qml/TimelineView.qml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'resources/qml/TimelineView.qml') 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 -- cgit 1.5.1