aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/assistant
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-29 09:48:44 +0100
committerDanilo M. <danix@danix.xyz>2026-11-29 09:48:44 +0100
commit8ba0f00279cf5264c9aad4323afbc6887bf76f57 (patch)
tree8303ac716076058f134ba86b6ee906751ef23898 /desktop/assistant
parent61467b2d35c9b78b352908f8236c0afea45cf635 (diff)
downloadquickshell-8ba0f00279cf5264c9aad4323afbc6887bf76f57.tar.gz
quickshell-8ba0f00279cf5264c9aad4323afbc6887bf76f57.zip
feat: WheelScroll on every vertical scroller, in every shellHEADmaster
The settings window's fix applied everywhere: under Wayland a mouse notch carries pixelDelta 15, which Flickable trusts, so the drawer tiles, notification list, clipboard, notes, assistant lists, steps window, OBS scenes, hosts and bookmarks all crawled 15px a notch. Bookmarks had its own handler that preferred a non-zero pixelDelta and so carried the same bug at 30px. WheelScroll.qml moves to shared/ and is linked from desktop/, hosts/ and bookmarks/, as Theme.qml is. Steps: a tile row for the drawer, three card rows for bookmarks, 60px for the two small text boxes, 40px for OBS scenes, 150px elsewhere. Its clamp now honours topMargin and bottomMargin, which bookmarks' grid uses. The animated step fires no movementStarted, which the assistant chat used to stop following a streaming reply once the user scrolled up, so WheelScroll gains a settled signal and the chat sets stick from atYEnd on it. games/ is untouched: its PathView steps one tile per notch on angleDelta and never had the bug. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/assistant')
-rw-r--r--desktop/assistant/Card.qml2
-rw-r--r--desktop/assistant/History.qml1
-rw-r--r--desktop/assistant/Models.qml1
-rw-r--r--desktop/assistant/Picker.qml1
4 files changed, 5 insertions, 0 deletions
diff --git a/desktop/assistant/Card.qml b/desktop/assistant/Card.qml
index 2f9af69..f4e1af1 100644
--- a/desktop/assistant/Card.qml
+++ b/desktop/assistant/Card.qml
@@ -252,6 +252,7 @@ Rectangle {
onMovementStarted: stick = false
onMovementEnded: stick = atYEnd
onContentHeightChanged: if (stick) Qt.callLater(positionViewAtEnd)
+ WheelScroll { parent: list; anchors.fill: parent; flick: list; onSettled: list.stick = list.atYEnd }
Component.onCompleted: positionViewAtEnd()
delegate: Message {
@@ -588,6 +589,7 @@ Rectangle {
contentHeight: input.contentHeight
clip: true
boundsBehavior: Flickable.StopAtBounds
+ WheelScroll { parent: scroller; anchors.fill: parent; flick: scroller; step: 60 }
function follow(r) {
if (r.y < contentY) contentY = r.y;
else if (r.y + r.height > contentY + height) contentY = r.y + r.height - height;
diff --git a/desktop/assistant/History.qml b/desktop/assistant/History.qml
index 709e1a6..1b2a355 100644
--- a/desktop/assistant/History.qml
+++ b/desktop/assistant/History.qml
@@ -58,6 +58,7 @@ Rectangle {
spacing: 4
boundsBehavior: Flickable.StopAtBounds
model: field.text.trim() === "" ? panel.canvas.convs : panel.canvas.results
+ WheelScroll { parent: rows; anchors.fill: parent; flick: rows }
delegate: Rectangle {
id: r
diff --git a/desktop/assistant/Models.qml b/desktop/assistant/Models.qml
index b1b2a38..1fa1d37 100644
--- a/desktop/assistant/Models.qml
+++ b/desktop/assistant/Models.qml
@@ -30,6 +30,7 @@ Rectangle {
clip: true
spacing: 2
model: panel.canvas.models
+ WheelScroll { parent: rows; anchors.fill: parent; flick: rows }
delegate: Rectangle {
id: r
diff --git a/desktop/assistant/Picker.qml b/desktop/assistant/Picker.qml
index 6d7b8ad..4c691ec 100644
--- a/desktop/assistant/Picker.qml
+++ b/desktop/assistant/Picker.qml
@@ -108,6 +108,7 @@ Rectangle {
boundsBehavior: Flickable.StopAtBounds
model: files
highlightMoveDuration: 0
+ WheelScroll { parent: rows; anchors.fill: parent; flick: rows }
delegate: Rectangle {
id: r