diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-01-08 11:38:16 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-01-08 11:38:16 (GMT) |
commit | 134ea86c67d75762ac87a85b8fef7bc022dbb9e8 (patch) | |
tree | 921cdb1c3709017c3931d3b8b2177c304a085229 /library | |
parent | f80ebafe71de8aa4f34ad087ec8d4fbbd2c75679 (diff) | |
parent | da5b5d5d4cf98f984439b3bb3894f60fd711ecaa (diff) | |
download | tk-134ea86c67d75762ac87a85b8fef7bc022dbb9e8.zip tk-134ea86c67d75762ac87a85b8fef7bc022dbb9e8.tar.gz tk-134ea86c67d75762ac87a85b8fef7bc022dbb9e8.tar.bz2 |
Fixed bug [1927212] - MouseWheel unbound for non-aqua scrollbars
Diffstat (limited to 'library')
-rw-r--r-- | library/scrlbar.tcl | 4 |
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. |