diff options
author | fvogel <fvogel@noemail.net> | 2016-01-06 15:59:47 (GMT) |
---|---|---|
committer | fvogel <fvogel@noemail.net> | 2016-01-06 15:59:47 (GMT) |
commit | d5c46cf43d94dba8c33c1e81c2979f53758022ba (patch) | |
tree | b6842d8e923420f253b5027cce0748ea2f17724d /library | |
parent | 88a2ec52c0403f619ded36af5e0fa7ecb7e0d356 (diff) | |
download | tk-d5c46cf43d94dba8c33c1e81c2979f53758022ba.zip tk-d5c46cf43d94dba8c33c1e81c2979f53758022ba.tar.gz tk-d5c46cf43d94dba8c33c1e81c2979f53758022ba.tar.bz2 |
Fixed bug [1927212] - MouseWheel unbound for non-aqua scrollbars
FossilOrigin-Name: 99cb058444199053f0bb5ef84de60f745213825f
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 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. |