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)
commitbfd23c8031316d2b1269299adc88cb71407aa741 (patch)
treec6cb6b751f75c8a59e80f6d2d81e8a980cd0f293 /library/scrlbar.tcl
parenta1a7b85d0a4953d55526a961d805de833c43db8f (diff)
downloadtk-bfd23c8031316d2b1269299adc88cb71407aa741.zip
tk-bfd23c8031316d2b1269299adc88cb71407aa741.tar.gz
tk-bfd23c8031316d2b1269299adc88cb71407aa741.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}