|
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>
|
|
Settings scrolled in jerks and a long list took dozens of notches. Two
causes. The 8000/4000 velocity and deceleration pair from 474ddd0 cut
each notch's flick short, so the page moved in steps rather than
gliding. And under Wayland a mouse notch arrives as angleDelta 120 with
pixelDelta 15, on a device Qt types as a touchpad (measured with a
logged WheelEvent): Flickable trusts the pixel delta, so every notch
moved 15px whatever the velocity settings said. The wallpaper list had
its own handler that jumped a whole row per notch, unanimated, which
read as stutter too.
WheelScroll.qml replaces all of it: a MouseArea taking no buttons that
turns angleDelta into a fixed step per notch and animates contentY
there over 180ms, notches mid-animation extending the end point. Pages
step 150px, the sidebar 120px, the wallpaper list one thumbnail row.
On a page it sits beneath the content, in the MouseArea that already
focused the page for the paging keys, so an inner slider or list keeps
its own wheel. The velocity pair is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|