Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K KDE Plasma Framework
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 25
    • Merge requests 25
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FrameworksFrameworks
  • KDE Plasma Framework
  • Merge requests
  • !350

Draft: Only change control values with scroll when focused

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Nate Graham requested to merge ngraham/plasma-framework:no-scroll-to-change-sliders into master Oct 11, 2021
  • Overview 10
  • Commits 1
  • Pipelines 6
  • Changes 3

Draft because I'm waiting to see what happens with kirigami!415 (merged).


Allowing controls to handle scroll events to change their values creates an un-resolvable UX conflict because sliders can be embedded into a scrollable view, and in this case, scrolling the view will unexpectedly change the values of any sliders that the cursor happens to pass over while the view is updating. This is especially severe for views with wide sliders that take up most or all of the horizontal space in a scrollable view, wherein scroll behavior is completely broken due to the conflict. The plasma-pa applet is one such example.

Disabling this behavior seems like an obvious solution, but inevitably we will discover the few users who use and like this behavior nd get complaints about it. So instead, this commit does something a bit tricky: it enables the behavior only if the control is focused. This allows you to focus a control to fine-tune its value with a scroll, but unfocused controls will ignore scroll events to avoid the conflict between "view scroll" and "change control values scroll".

BUG: 385270 FIXED-IN: 5.88

To test:

  • Scroll on the Audio Volume applet while it has enough devices to be scrollable and don't get driven mad
  • Scroll on the spinbox to change panel thickness once the Panel edit toolbar is visible and see that it still works because it has focus

cc @teams/usability

Edited Dec 03, 2021 by Nate Graham
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: no-scroll-to-change-sliders