diff options
author | Mark Levedahl <mlevedahl@gmail.com> | 2025-06-03 07:36:44 -0400 |
---|---|---|
committer | Mark Levedahl <mlevedahl@gmail.com> | 2025-07-16 23:01:51 -0400 |
commit | ec02983e8da3ec625092792651e64aef45b778e1 (patch) | |
tree | 754c99966d6f67f030d0047fa22264db5dfbbd48 /commit-graph.c | |
parent | 3489ff17e2861d83407e215224f8654cd8671135 (diff) |
gitk: wheel scrolling multiplier preference
gitk provides scrolling of several windows, uses hard-coded values for
the amount of scrolling, and these values differ across platforms and
widgets. The nominal value used is either 1 text line per mouse /
touchpad / button event, or 5 lines. Furthermore, Tk does not scroll
text widgets by 1 line when told to, this usually gets 2-3 lines of
motion. The upper canvas objects holding the commit graph do scroll as
defined. But, clearly no value is universally preferred, so let's give
the user some control over this. Provide a single multiplier to be
applied for all scroll bindings, with a value of 3 to mean the default
nominal value of 3 line. This is selected both as a compromise between
the various defaults across platforms, and because it is the smallest
value honored by the two text widgets on the bottom of the screen.
Later commits will connect this variable for actual scrolling events.
Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions