summaryrefslogtreecommitdiffstats
path: root/library/scrlbar.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-01-20 19:23:46 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-01-20 19:23:46 (GMT)
commit0176b08225a47e5f21586757e0efb9cfe8609fa7 (patch)
tree91673cb7b0c95cde596fc08edc9971ecc7a519de /library/scrlbar.tcl
parent6c0187f324138cc7e5f7aeaafa9718bd32e536c4 (diff)
parentbbcec99c56690c05359f41e55c6dd7f3461c9aee (diff)
downloadtk-0176b08225a47e5f21586757e0efb9cfe8609fa7.zip
tk-0176b08225a47e5f21586757e0efb9cfe8609fa7.tar.gz
tk-0176b08225a47e5f21586757e0efb9cfe8609fa7.tar.bz2
merge 8.5
Diffstat (limited to 'library/scrlbar.tcl')
-rw-r--r--library/scrlbar.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/scrlbar.tcl b/library/scrlbar.tcl
index 4b25325..43ce4ae 100644
--- a/library/scrlbar.tcl
+++ b/library/scrlbar.tcl
@@ -141,6 +141,13 @@ if {[tk windowingsystem] eq "aqua"} {
bind Scrollbar <Shift-Option-MouseWheel> {
tk::ScrollByUnits %W h [expr {-10 * (%D)}]
}
+} else {
+ bind Scrollbar <MouseWheel> {
+ tk::ScrollByUnits %W v [expr {- (%D /120 ) * 4}]
+ }
+ bind Scrollbar <Shift-MouseWheel> {
+ tk::ScrollByUnits %W h [expr {- (%D /120 ) * 4}]
+ }
}
# tk::ScrollButtonDown --
# This procedure is invoked when a button is pressed in a scrollbar.