summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2016-01-08 11:38:16 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2016-01-08 11:38:16 (GMT)
commite7e7dbc4af531416edc3a3a673489f593d677ce3 (patch)
tree921cdb1c3709017c3931d3b8b2177c304a085229 /library
parent4e3991ae13c38ad5e18c19a2e5a7a72af2fd519e (diff)
parent3be6445701ce2055ee22cbff1e77c149d98d82e6 (diff)
downloadtk-e7e7dbc4af531416edc3a3a673489f593d677ce3.zip
tk-e7e7dbc4af531416edc3a3a673489f593d677ce3.tar.gz
tk-e7e7dbc4af531416edc3a3a673489f593d677ce3.tar.bz2
Fixed bug [1927212] - MouseWheel unbound for non-aqua scrollbars
FossilOrigin-Name: 932669464ee1cb5813614f71d573c43fd7a66c11
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 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.