You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TclTk 8.7 (still in alpha), and 9.0 (released), implement TIP 474 that
delivers uniform handling of mouse and touchpad scrolling events on all
platforms, and by default bound to most widgets. This means that gitk
needs specific bindings only for scrolling the top 3 panes and can use
the same bindings on all platforms.
TIP 474 provides the delta (%D) value as nominally 120 for a single
wheel click, but can be smaller for fine motion. Shift- events are used
for horizontal scrolling, and both are connected for the mouse wheel and
for touchpads. Also the Option- modifier (the Alt key on PCs, the Option
key on Macs) is used to select large rather than fine motion. Button
events are never used.
This largely follows the prior win32 model, except that Tk 8.6 does not
reliably use the Option- modifier because the Alt- key conflicts with
builtin behavior to activate the main menubar. Presumably this conflict
is addressed in the win32 Tcl9.x package. So, create a new Tcl9 mouse
binding set, based upon win32, but adding Option- bindings that increase
scrolling motion by a factor of 5, in keeping with the basic Tk 9.x
behavior.
Signed-off-by: Mark Levedahl <[email protected]>
0 commit comments