summaryrefslogtreecommitdiffstats
path: root/library/scrlbar.tcl
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-01-06 15:59:47 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-01-06 15:59:47 (GMT)
commit46dd965d3c6d8b9617e6f4edb792a79b08730423 (patch)
treeb6842d8e923420f253b5027cce0748ea2f17724d /library/scrlbar.tcl
parent1a7d3ba3cabd12bbfac8cf8a06c1cc2b755ce3dc (diff)
downloadtk-46dd965d3c6d8b9617e6f4edb792a79b08730423.zip
tk-46dd965d3c6d8b9617e6f4edb792a79b08730423.tar.gz
tk-46dd965d3c6d8b9617e6f4edb792a79b08730423.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 4b25325..7cec556 100644
--- a/library/scrlbar.tcl
+++ b/library/scrlbar.tcl
@@ -141,6 +141,10 @@ if {[tk windowingsystem] eq "aqua"} {
bind Scrollbar <Shift-Option-MouseWheel> {
tk::ScrollByUnits %W h [expr {-10 * (%D)}]
}
+} 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.