fix clunky scrolling behavior on flickables

This commit is contained in:
thotbot 2019-12-16 20:52:50 +00:00
parent 46227bdad0
commit 94561ed2a6
4 changed files with 4 additions and 0 deletions

View file

@ -350,6 +350,7 @@ Rectangle {
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: networkStatus.top anchors.bottom: networkStatus.top
width: parent.width width: parent.width
boundsBehavior: isMac ? Flickable.DragAndOvershootBounds : Flickable.StopAtBounds
clip: true clip: true
Column { Column {

View file

@ -186,6 +186,7 @@ Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
clip: true clip: true
boundsBehavior: isMac ? Flickable.DragAndOvershootBounds : Flickable.StopAtBounds
ScrollBar.vertical: ScrollBar { ScrollBar.vertical: ScrollBar {
parent: root parent: root

View file

@ -125,6 +125,7 @@ Rectangle {
id: flickable id: flickable
anchors.fill: parent anchors.fill: parent
ScrollBar.vertical: ScrollBar { } ScrollBar.vertical: ScrollBar { }
boundsBehavior: isMac ? Flickable.DragAndOvershootBounds : Flickable.StopAtBounds
TextArea.flickable: TextArea { TextArea.flickable: TextArea {
id: dialogContent id: dialogContent

View file

@ -267,6 +267,7 @@ Rectangle {
id: wizardFlickable id: wizardFlickable
anchors.fill: parent anchors.fill: parent
clip: true clip: true
boundsBehavior: isMac ? Flickable.DragAndOvershootBounds : Flickable.StopAtBounds
ScrollBar.vertical: ScrollBar { ScrollBar.vertical: ScrollBar {
parent: wizardController parent: wizardController