diff --git a/gitk b/gitk index bd57a55466..ba112586be 100755 --- a/gitk +++ b/gitk @@ -2272,6 +2272,7 @@ proc bind_mousewheel {} { bind $ctext {$ctext xview scroll [scrollval %D 2] units} bind $cflist {$cflist yview scroll [scrollval %D 2] units} bind $cflist break + bind $canv {$canv xview scroll [scrollval %D] units} } proc bind_mousewheel_buttons {} { @@ -2288,6 +2289,8 @@ proc bind_mousewheel_buttons {} { bind $cflist {$cflist yview scroll [scrollval -1 2] units} bind $cflist break bind $cflist break + bind $canv {$canv xview scroll [scrollval 1] units} + bind $canv {$canv xview scroll [scrollval -1] units} } proc makewindow {} { @@ -2388,6 +2391,7 @@ proc makewindow {} { canvas $canv \ -selectbackground $selectbgcolor \ -background $bgcolor -bd 0 \ + -xscrollincr $linespc \ -yscrollincr $linespc -yscrollcommand "scrollcanv $cscroll" .tf.histframe.pwclist add $canv set canv2 .tf.histframe.pwclist.canv2