From 8ba0f00279cf5264c9aad4323afbc6887bf76f57 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 29 Nov 2026 09:48:44 +0100 Subject: feat: WheelScroll on every vertical scroller, in every shell 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 --- desktop/modules/appearance/StepsWindow.qml | 2 ++ desktop/modules/assistant/AssistantPage.qml | 2 ++ desktop/modules/clipboard/ClipboardPage.qml | 1 + desktop/modules/notes/NotesPage.qml | 1 + 4 files changed, 6 insertions(+) (limited to 'desktop/modules') diff --git a/desktop/modules/appearance/StepsWindow.qml b/desktop/modules/appearance/StepsWindow.qml index aeb77fe..dcfe705 100644 --- a/desktop/modules/appearance/StepsWindow.qml +++ b/desktop/modules/appearance/StepsWindow.qml @@ -106,6 +106,7 @@ Scope { } Flickable { + id: steps width: parent.width // Sized from the screen, never from the window: the // window's height comes from this, and a binding back @@ -114,6 +115,7 @@ Scope { win.screen.height - 240 - tabBar.implicitHeight - actions.implicitHeight - 32) contentHeight: content.implicitHeight clip: true + WheelScroll { parent: steps; anchors.fill: parent; flick: steps } Column { id: content diff --git a/desktop/modules/assistant/AssistantPage.qml b/desktop/modules/assistant/AssistantPage.qml index 0875a5d..a952b4f 100644 --- a/desktop/modules/assistant/AssistantPage.qml +++ b/desktop/modules/assistant/AssistantPage.qml @@ -398,7 +398,9 @@ Column { color: Theme.surface ScrollView { + id: promptScroll anchors { fill: parent; margins: 8 } + WheelScroll { parent: promptScroll; anchors.fill: parent; flick: promptScroll.contentItem; step: 60 } TextArea { id: prompt wrapMode: TextEdit.Wrap diff --git a/desktop/modules/clipboard/ClipboardPage.qml b/desktop/modules/clipboard/ClipboardPage.qml index 945557c..9b48909 100644 --- a/desktop/modules/clipboard/ClipboardPage.qml +++ b/desktop/modules/clipboard/ClipboardPage.qml @@ -101,6 +101,7 @@ Item { highlightMoveDuration: 0 boundsBehavior: Flickable.StopAtBounds ScrollBar.vertical: ScrollBar {} + WheelScroll { parent: list; anchors.fill: parent; flick: list } Text { anchors.centerIn: parent diff --git a/desktop/modules/notes/NotesPage.qml b/desktop/modules/notes/NotesPage.qml index c4563e0..8130c7e 100644 --- a/desktop/modules/notes/NotesPage.qml +++ b/desktop/modules/notes/NotesPage.qml @@ -221,6 +221,7 @@ Item { model: Notes.filter(page.owner.notes, search.text) boundsBehavior: Flickable.StopAtBounds ScrollBar.vertical: ScrollBar {} + WheelScroll { parent: list; anchors.fill: parent; flick: list } delegate: Rectangle { id: row -- cgit v1.2.3