summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-08 15:40:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-08 15:40:47 (GMT)
commit3b7649bdc1d6357c2c3145879d0720493e784622 (patch)
tree069b80f291f65c3c0b4dbb629dc862e9ecefd86f /library
parent1120c995717aa00bf4fe9bd5159ab8de6ca6e628 (diff)
downloadtk-3b7649bdc1d6357c2c3145879d0720493e784622.zip
tk-3b7649bdc1d6357c2c3145879d0720493e784622.tar.gz
tk-3b7649bdc1d6357c2c3145879d0720493e784622.tar.bz2
..... horizontal scrollbar too
Diffstat (limited to 'library')
-rw-r--r--library/scrlbar.tcl5
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}