Make sure we never get in-panel scrolling when we shouldn'

This commit is contained in:
David Heinemeier Hansson
2026-06-20 22:19:53 +02:00
parent d74ed24db7
commit 8ae975357a
7 changed files with 18 additions and 3 deletions
@@ -207,6 +207,7 @@ BarWidget {
clip: true
boundsBehavior: Flickable.StopAtBounds
flickableDirection: Flickable.VerticalFlick
interactive: contentHeight > height
ScrollBar.vertical: ScrollBar { policy: ScrollBar.AsNeeded }
Column {
+6 -1
View File
@@ -584,7 +584,12 @@ Panel {
anchors.fill: parent
clip: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded
ScrollBar.vertical.policy: panelColumn.implicitHeight > height ? ScrollBar.AsNeeded : ScrollBar.AlwaysOff
Binding {
target: scrollArea.contentItem
property: "interactive"
value: panelColumn.implicitHeight > scrollArea.height
}
Column {
id: panelColumn
+2 -1
View File
@@ -66,7 +66,7 @@ Panel {
readonly property bool rotatingPhrases: adapter && adapter.enabled
readonly property string heroStatusText: {
if (!adapter) return "No adapter"
if (!adapter.enabled) return "Bluetooth off"
if (!adapter.enabled) return "Turned Off"
return activePhrases[phraseIndex % activePhrases.length]
}
@@ -624,6 +624,7 @@ Panel {
contentHeight: deviceList.implicitHeight
clip: true
boundsBehavior: Flickable.StopAtBounds
interactive: contentHeight > height
ScrollBar.vertical: ScrollBar { policy: ScrollBar.AsNeeded }
+1
View File
@@ -215,6 +215,7 @@ Panel {
clip: true
boundsBehavior: Flickable.StopAtBounds
flickableDirection: Flickable.VerticalFlick
interactive: contentHeight > height
ScrollBar.vertical: ScrollBar { policy: ScrollBar.AsNeeded }
Column {
+6 -1
View File
@@ -382,7 +382,12 @@ Panel {
anchors.fill: parent
clip: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded
ScrollBar.vertical.policy: panelColumn.implicitHeight > height ? ScrollBar.AsNeeded : ScrollBar.AlwaysOff
Binding {
target: scrollArea.contentItem
property: "interactive"
value: panelColumn.implicitHeight > scrollArea.height
}
Column {
id: panelColumn
+1
View File
@@ -445,6 +445,7 @@ Panel {
clip: true
boundsBehavior: Flickable.StopAtBounds
flickableDirection: Flickable.VerticalFlick
interactive: contentHeight > height
ScrollBar.vertical: ScrollBar { policy: ScrollBar.AsNeeded }
Column {
+1
View File
@@ -245,6 +245,7 @@ Panel {
contentHeight: weatherColumn.implicitHeight
clip: true
boundsBehavior: Flickable.StopAtBounds
interactive: contentHeight > height
Column {
id: weatherColumn