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
Since 5fdcbb1 ("gitk: Fixes for Mac OS X TkAqua", 2009-03-23), gitk
provides horizontal scrolling of the commit graph pane on aqua, but not
on x11 or win32. Also, the horizontal scrolling is triggered by mouse
events attached to any of the three panes, not just the commit graph
that is the only one that scrolls. It is unusual to scroll a widget that
is not under the mouse, many would consider this a bug. Also, no
horizontal scrollbar is provided for this, so there is no real cue for
the user that horizontal scrolling is available. A prior commit removed
this aqua only feature.
Let's connect this as a feature on all platforms, and use the
transmitted delta (%D) value and the user preference kscroll to adjust
the amount scrolled for aqua and win32. x11 receives only button events,
so uses $kscroll alone for the scrolling value. For horizontal
scrolling, honor only events received by the commit graph in conformance
with normal GUI design. Vertical scrolling is unchanged, and events
received by any of the 3 panes continue to scroll all 3 in unison.
Vertical scrolling is already scaled by the vertical font size metrics,
this is a suitable value to scale the horizontal scrolling as well.
Per the ancient and long ignored CUA standards, we should add a
horizontal scrollbar to the commit-graph, but gitk's interface is
already very cluttered: adding a scrollbar to only one of these three
panes is difficult while maintaining common pane vertical size,
especially so considering the movable sash separating panes 1 & 2, and
will consume yet more space. So, leave this as a hidden feature, now
available on all platforms.
Signed-off-by: Mark Levedahl <[email protected]>
0 commit comments