Parent ScrollBars to their Flingables, not the StackView

This ensures they disappear when navigating to a new page
This commit is contained in:
Cameron Gutman
2020-05-10 12:53:27 -07:00
parent 573c470965
commit 8d89983eeb
3 changed files with 3 additions and 27 deletions

View File

@@ -263,18 +263,5 @@ CenteredGridView {
onAccepted: quitApp()
}
ScrollBar.vertical: ScrollBar {
// Manually hide the scrollbar to prevent it from being drawn on top
// of the StreamSegue during the transition. It can sometimes get stuck
// there since we're not consistently pumping the event loop while
// starting the stream.
visible: activated
parent: appGrid.parent
anchors {
top: parent.top
right: parent.right
bottom: parent.bottom
}
}
ScrollBar.vertical: ScrollBar {}
}