Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1.6k
    • Issues 1.6k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 239
    • Merge requests 239
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gtkgtk
  • Merge requests
  • !4672

Add scroll speed settings

  • Review changes

  • Download
  • Patches
  • Plain diff
Open panoplie requested to merge panoplie/gtk:scroll-speed into main Apr 28, 2022
  • Overview 35
  • Commits 3
  • Pipelines 1
  • Changes 7

GdkScrollEvent reports raw scroll events from mouse wheels, 2-fingers touchpad motions, trackpoint scroll motions... Scroll events have different use cases. The most common one is to move content on screen. But they can also be used to switch weapon on a video-game, itterate values in a combo box or a number picker, zoom on a picture... Users ask for a way to configure the scroll speed. It only concerns the first most-common use case.

This MR adds 3 new GtkSettings keys to control the scrolling speed on each scroll device: mouse, touchpad and trackpoint. It also implement these settings in GtkScrolledWindow. To determine the device where the scroll event come from, we look at the GdkScrollUnit of the event. We need a new unit to distinguish the trackpoint case. That's why I have added a new GDK_SCROLL_UNIT_CONTINUOUS enum. I have modified the GdkScrollUnit docs to precisely explain the meaning of each GdkScrollUnit enum.

Edited Nov 07, 2022 by panoplie
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: scroll-speed