diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2016-01-08 11:38:16 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2016-01-08 11:38:16 (GMT) |
commit | e7e7dbc4af531416edc3a3a673489f593d677ce3 (patch) | |
tree | 921cdb1c3709017c3931d3b8b2177c304a085229 /library | |
parent | 4e3991ae13c38ad5e18c19a2e5a7a72af2fd519e (diff) | |
parent | 3be6445701ce2055ee22cbff1e77c149d98d82e6 (diff) | |
download | tk-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.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. |