summary refs log tree commit diff
path: root/resources/qml/TimelineView.qml
diff options
context:
space:
mode:
authorLasath Fernando <devel@lasath.org>2020-04-28 00:29:51 -0700
committerLasath Fernando <devel@lasath.org>2020-04-28 00:29:51 -0700
commit1555dc2296cbdc77797aa2f86cab8eaba5c913b1 (patch)
tree06654e5bf2d367160a7393802c0779719f24b21e /resources/qml/TimelineView.qml
parentSend correct orientation for exif rotated images (diff)
downloadnheko-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.qml17
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