diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2016-01-08 15:40:47 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2016-01-08 15:40:47 (GMT) |
commit | 92daef03095e8005d79dbd1f9d5c80f30bfc5a01 (patch) | |
tree | 069b80f291f65c3c0b4dbb629dc862e9ecefd86f /library | |
parent | 020ffcf6fb7302e7efbe00541c3b7959864060db (diff) | |
download | tk-92daef03095e8005d79dbd1f9d5c80f30bfc5a01.zip tk-92daef03095e8005d79dbd1f9d5c80f30bfc5a01.tar.gz tk-92daef03095e8005d79dbd1f9d5c80f30bfc5a01.tar.bz2 |
..... vertical scrollbar too
FossilOrigin-Name: 972d3670cd101e9706501e393b9b8aa941c89384
Diffstat (limited to 'library')
-rw-r--r-- | library/scrlbar.tcl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/scrlbar.tcl b/library/scrlbar.tcl index 7b1c3af..b1658ac 100644 --- a/library/scrlbar.tcl +++ b/library/scrlbar.tcl @@ -153,7 +153,10 @@ switch [tk windowingsystem] { } "x11" { bind Scrollbar <MouseWheel> { - tk::ScrollByUnits %W v [expr {- (%D/120)}] + tk::ScrollByUnits %W v [expr {- (%D /120 )}] + } + bind Scrollbar <Shift-MouseWheel> { + tk::ScrollByUnits %W h [expr {- (%D /120 )}] } bind Scrollbar <4> {tk::ScrollByUnits %W v -5} bind Scrollbar <5> {tk::ScrollByUnits %W v 5} |