diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-01-08 15:35:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-01-08 15:35:09 (GMT) |
commit | df5368ff9ace142a5d1f1db68a7c24a81a51d8d5 (patch) | |
tree | 189a03017ec5e245ff47dbed4fb4aa3c21653f1c /library | |
parent | abf2f765a373e996b93c141d8c4b38f067358129 (diff) | |
parent | da5b5d5d4cf98f984439b3bb3894f60fd711ecaa (diff) | |
download | tk-df5368ff9ace142a5d1f1db68a7c24a81a51d8d5.zip tk-df5368ff9ace142a5d1f1db68a7c24a81a51d8d5.tar.gz tk-df5368ff9ace142a5d1f1db68a7c24a81a51d8d5.tar.bz2 |
New attempt at fixing bug [1927212fff]. (rebased against Tk 8.6)
Diffstat (limited to 'library')
-rw-r--r-- | library/scrlbar.tcl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/scrlbar.tcl b/library/scrlbar.tcl index e17442f..7b1c3af 100644 --- a/library/scrlbar.tcl +++ b/library/scrlbar.tcl @@ -152,6 +152,9 @@ switch [tk windowingsystem] { } } "x11" { + bind Scrollbar <MouseWheel> { + tk::ScrollByUnits %W v [expr {- (%D/120)}] + } bind Scrollbar <4> {tk::ScrollByUnits %W v -5} bind Scrollbar <5> {tk::ScrollByUnits %W v 5} bind Scrollbar <Shift-4> {tk::ScrollByUnits %W h -5} |