Repository navigation
feat: accelerate pointer scrolling across vertical views - #16
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (8)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change adds a reusable ChangesFast scroll handling
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change adds accelerated, bounded wheel scrolling across the listed vertical views. No concrete merge-blocking behavior or integration risk remains. Suggested reviewers: 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
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation 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)
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. Comment |
|
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 |
|
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. |
What changes
FastScrollHandlerwith a 4x multiplierpixelDeltainput and discreteangleDeltawheel notchesWhy 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
MouseAreaoverlay withacceptedButtons: Qt.NoButton, so taps and drags remain owned by the existing row handlers. This follows the live finding from #5 that a childWheelHandlerloses wheel events to itsFlickableparent.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 unchangedConfiguration LoadedNo new automated tests are included.
Summary by CodeRabbit