From 40b389e3901542a74874e012df7115bdb73fb8de Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 28 Oct 2014 12:12:19 +0100 Subject: [PATCH] Drag down from top to show player --- touch/Main.qml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/touch/Main.qml b/touch/Main.qml index 13b78b7..29d9621 100644 --- a/touch/Main.qml +++ b/touch/Main.qml @@ -234,6 +234,36 @@ Item { } } + Rectangle { + z: 103 + color: 'transparent' + height: 20 * pgst.scalef + anchors { + left: parent.left + right: parent.right + top: parent.top + } + + MouseArea { + property real pressedY + + anchors.fill: parent + onPressed: { + mouse.accepted = true; + pressedY = mouse.y; + } + + onReleased: { + var yDiff = (mouse.y - pressedY) / pgst.scalef + if (yDiff > 50) { + if (throbber.enabled) { + throbber.clicked(); + } + } + } + } + } + PodcastsPage { visible: py.ready }