]> Kevux Git Server - rit/commit
gitk: update win32 scrolling for Tk 8.6 / TIP 171
authorMark Levedahl <mlevedahl@gmail.com>
Sat, 6 Jul 2024 15:08:32 +0000 (11:08 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Thu, 17 Jul 2025 03:01:51 +0000 (23:01 -0400)
commit61c74d062bd9fd35c6f9a17b488abce88d560566
treeef70d0c13de6f78d57c698adbd6bd9b687edbb86
parent429bbf449c4ce43330e16422070080c314f8b8c4
gitk: update win32 scrolling for Tk 8.6 / TIP 171

gitk on win32 binds windows_mousewheel_redirector to all MouseWheel
events in the main window. This proc determines the widget under the
cursor, then determines what scroll command to give, possibly none, and
issues scroll commands to the widget. The top panes get only vertical
scroll events, as does the lower right Patch/Tree pane. All others get
both vertical and horizontal events. These are all hard coded at +/-
five lines.

We now have common MouseWheel event bindings that follow user
preferences for the scrolling amount, bind for only the five main
display widgets, and leave the other gui elements untouched. Let's use
this instead. With the scrolling preference set at 5, the users should
not notice much, if any, difference.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
gitk