summaryrefslogtreecommitdiffstats
path: root/library/scrlbar.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'library/scrlbar.tcl')
-rw-r--r--library/scrlbar.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/scrlbar.tcl b/library/scrlbar.tcl
index e17442f..2a70b97 100644
--- a/library/scrlbar.tcl
+++ b/library/scrlbar.tcl
@@ -157,6 +157,10 @@ switch [tk windowingsystem] {
bind Scrollbar <Shift-4> {tk::ScrollByUnits %W h -5}
bind Scrollbar <Shift-5> {tk::ScrollByUnits %W h 5}
}
+} 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.