summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2016-01-08 15:35:09 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2016-01-08 15:35:09 (GMT)
commit029b383385444cf3b7292367b5df3f309d625416 (patch)
tree189a03017ec5e245ff47dbed4fb4aa3c21653f1c /library
parent16751e9039736ce28f68f5c3fe52254d83319232 (diff)
parent9b0300effa57e7befef87e8ea6e05b0d5ff046ae (diff)
downloadtk-029b383385444cf3b7292367b5df3f309d625416.zip
tk-029b383385444cf3b7292367b5df3f309d625416.tar.gz
tk-029b383385444cf3b7292367b5df3f309d625416.tar.bz2
New attempt at fixing bug [1927212fff]. (rebased against Tk 8.6)
Diffstat (limited to 'library')
-rw-r--r--library/scrlbar.tcl3
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}