summaryrefslogtreecommitdiffstats
path: root/library/scrlbar.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-08 22:10:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-08 22:10:59 (GMT)
commita74bdffd9369f2ed76ba90a5497e5a4f7b2475cd (patch)
treec6cb6b751f75c8a59e80f6d2d81e8a980cd0f293 /library/scrlbar.tcl
parent3b7649bdc1d6357c2c3145879d0720493e784622 (diff)
downloadtk-a74bdffd9369f2ed76ba90a5497e5a4f7b2475cd.zip
tk-a74bdffd9369f2ed76ba90a5497e5a4f7b2475cd.tar.gz
tk-a74bdffd9369f2ed76ba90a5497e5a4f7b2475cd.tar.bz2
Make test-case and binding equal for win32 and x11. Test-case doesn't pass yet
Diffstat (limited to 'library/scrlbar.tcl')
-rw-r--r--library/scrlbar.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/scrlbar.tcl b/library/scrlbar.tcl
index b1658ac..b7be014 100644
--- a/library/scrlbar.tcl
+++ b/library/scrlbar.tcl
@@ -153,10 +153,10 @@ switch [tk windowingsystem] {
}
"x11" {
bind Scrollbar <MouseWheel> {
- tk::ScrollByUnits %W v [expr {- (%D /120 )}]
+ tk::ScrollByUnits %W v [expr {- (%D /120 ) * 4}]
}
bind Scrollbar <Shift-MouseWheel> {
- tk::ScrollByUnits %W h [expr {- (%D /120 )}]
+ tk::ScrollByUnits %W h [expr {- (%D /120 ) * 4}]
}
bind Scrollbar <4> {tk::ScrollByUnits %W v -5}
bind Scrollbar <5> {tk::ScrollByUnits %W v 5}