summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-08 11:39:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-08 11:39:08 (GMT)
commit93871e55e0916c42bc9d393fdba3814b1b45e285 (patch)
treec2237a7e10afd1b3c85ed57d0f04fa33938aa829 /library
parent9585548e0c8e9888638122b776be2e37e92bd271 (diff)
downloadtk-93871e55e0916c42bc9d393fdba3814b1b45e285.zip
tk-93871e55e0916c42bc9d393fdba3814b1b45e285.tar.gz
tk-93871e55e0916c42bc9d393fdba3814b1b45e285.tar.bz2
(cherry-pick) Fixed bug [1927212] - MouseWheel unbound for non-aqua scrollbars
Diffstat (limited to 'library')
-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.