Drag down from top to show player
This commit is contained in:
parent
cb4aa06901
commit
40b389e390
1 changed files with 30 additions and 0 deletions
|
@ -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 {
|
PodcastsPage {
|
||||||
visible: py.ready
|
visible: py.ready
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue