Skip to content

feat: accelerate pointer scrolling across vertical views - #16

Merged
thisisgm merged 1 commit into
thisisgm:mainfrom
stappmus:feat/faster-scrolling
Sep 8, 2026
Merged

thisisgm merged 1 commit into
thisisgm:mainfrom
stappmus:feat/faster-scrolling

Conversation

@stappmus

@stappmus stappmus commented Sep 3, 2026 •

Copy link
Copy Markdown

What changes

  • adds one shared FastScrollHandler with a 4x multiplier
  • applies it to the list, grid, Miller columns, places rail, text preview, and zoomed PDF pane
  • handles smooth pixelDelta input and discrete angleDelta wheel notches
  • clamps every write to the Flickable origin and content end

Why 4x

This ports the behavior from Omarchy Spotify commit 7499123, where the multiplier was calibrated to feel about as fast as Chromium.

Discrete wheels still honor Application.styleHints.wheelScrollLines; the multiplier sits on top of that platform preference. Touchpads keep their fractional pixel deltas, multiplied by the same amount.

Event handling

The handler uses a MouseArea overlay with acceptedButtons: Qt.NoButton, so taps and drags remain owned by the existing row handlers. This follows the live finding from #5 that a child WheelHandler loses wheel events to its Flickable parent.

The scroll stays immediate and animation-free, matching the existing motion rule. A wheel event is accepted only when it actually moves the target, so boundary events can continue propagating.

Verification

  • cargo build --release
  • ./tools/flea-qmllint-gate — 0 actionable regressions
  • ./tools/flea-file-budget — passes; existing soft warnings unchanged
  • live Wayland smoke launch reaches Configuration Loaded

No new automated tests are included.

Summary by CodeRabbit

  • New Features
    • Added faster scrolling to lists, grids, sidebars, PDF pages, and text previews.
    • Improved mouse wheel and touchpad scrolling with configurable speed and bounded movement.
    • Preserved normal tapping and dragging interactions while enhancing wheel-based navigation.

@coderabbitai

coderabbitai Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 6df3c2cf-9170-4907-b045-58702aece46c

📥 Commits

Reviewing files that changed from the base of the PR and between 979ad25 and 6881047.

📒 Files selected for processing (8)
  • ui/ColumnPane.qml
  • ui/FastScrollHandler.qml
  • ui/GridArea.qml
  • ui/List.qml
  • ui/PdfViewer.qml
  • ui/PreviewText.qml
  • ui/Sidebar.qml
  • ui/qmldir

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

The change adds a reusable FastScrollHandler QML type. It scales and bounds wheel scrolling, then connects the handler to multiple list, grid, PDF, preview, and sidebar views.

Changes

Fast scroll handling

Layer / File(s) Summary
Fast-scroll handler implementation
ui/FastScrollHandler.qml, ui/qmldir
The new handler scales touchpad and wheel input, clamps contentY, cancels active flicks, and registers as FastScrollHandler 1.0.
Flickable view integration
ui/ColumnPane.qml, ui/GridArea.qml, ui/List.qml, ui/PdfViewer.qml, ui/PreviewText.qml, ui/Sidebar.qml
The handler is attached to the configured ListView, GridView, and Flickable instances.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 68810

This change adds accelerated, bounded wheel scrolling across the listed vertical views. No concrete merge-blocking behavior or integration risk remains.

Suggested reviewers: thisisgm, joewinke, smillunchick

Sequence Diagram(s)

sequenceDiagram
  participant MouseArea
  participant FastScrollHandler
  participant ApplicationStyleHints
  participant Flickable
  MouseArea->>FastScrollHandler: Receive wheel or touchpad deltas
  FastScrollHandler->>ApplicationStyleHints: Read wheelScrollLines
  FastScrollHandler->>Flickable: Cancel flick and set bounded contentY
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: accelerating scrolling across multiple vertical views through the shared FastScrollHandler.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (8 skipped: 8 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nixfred

nixfred commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

I reproduced the same scrolling issue and found two related overflow gaps: long SMB share lists were not scrollable, and large Taildrop/context menus could extend offscreen. I opened stappmus#1 against this PR with those fixes plus deterministic wheel/bounds and nine-surface coverage: stappmus#1

@nixfred nixfred mentioned this pull request Sep 3, 2026
10 of 11 tasks
@thisisgm
thisisgm merged commit 5063929 into thisisgm:main Sep 8, 2026
1 check passed
@thisisgm

thisisgm commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Merged in 5063929 (v0.1.6) with your commit as its parent: one notch is four discrete steps, touchpad pixels move one to one on both axes; thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants