summaryrefslogtreecommitdiffstats
path: root/library/scrlbar.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-08 11:38:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-08 11:38:16 (GMT)
commit53100bbaa986eb70a8c1337bd65b096d93bf4ac4 (patch)
tree921cdb1c3709017c3931d3b8b2177c304a085229 /library/scrlbar.tcl
parent36db175996d43acf3e378e3ddb71d1977f04e4e3 (diff)
parent8e521a94152cd4546be53ea626f09f96f1f102d4 (diff)
downloadtk-53100bbaa986eb70a8c1337bd65b096d93bf4ac4.zip
tk-53100bbaa986eb70a8c1337bd65b096d93bf4ac4.tar.gz
tk-53100bbaa986eb70a8c1337bd65b096d93bf4ac4.tar.bz2
Fixed bug [1927212] - MouseWheel unbound for non-aqua scrollbars
Diffstat (limited to 'library/scrlbar.tcl')
-rw-r--r--library/scrlbar.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/scrlbar.tcl b/library/scrlbar.tcl
index e17442f..2a70b97 100644
--- a/library/scrlbar.tcl
+++ b/library/scrlbar.tcl
@@ -157,6 +157,10 @@ switch [tk windowingsystem] {
bind Scrollbar <Shift-4> {tk::ScrollByUnits %W h -5}
bind Scrollbar <Shift-5> {tk::ScrollByUnits %W h 5}
}
+} else {
+ bind Scrollbar <MouseWheel> {
+ tk::ScrollByUnits %W v [expr {- (%D/120)}]
+ }
}
# tk::ScrollButtonDown --
# This procedure is invoked when a button is pressed in a scrollbar.