summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-06 16:49:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-06 16:49:24 (GMT)
commit7eebdb115b74dd98b3eb9c32e0077a21b084c3bc (patch)
tree3762ada4b92930d5bce640c8fbf8fe25d1cf57d2 /library
parente1d268586f17ae687f67137206fe32a6907c7be3 (diff)
parentf51d73def011d920a123d35863c79a9c0e253016 (diff)
downloadtk-7eebdb115b74dd98b3eb9c32e0077a21b084c3bc.zip
tk-7eebdb115b74dd98b3eb9c32e0077a21b084c3bc.tar.gz
tk-7eebdb115b74dd98b3eb9c32e0077a21b084c3bc.tar.bz2
Merge 8.6 (actually, just missing braces in listbox bindings, as correctly spotted by Csaba Nemethi)
Diffstat (limited to 'library')
-rw-r--r--library/listbox.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/listbox.tcl b/library/listbox.tcl
index f057151..3802223 100644
--- a/library/listbox.tcl
+++ b/library/listbox.tcl
@@ -204,14 +204,14 @@ if {[tk windowingsystem] eq "aqua"} {
if {%D >= 0} {
%W yview scroll [expr {-%D/30}] units
} else {
- %W yview scroll [expr {29-%D/30}] units
+ %W yview scroll [expr {(29-%D)/30}] units
}
}
bind Listbox <Shift-MouseWheel> {
if {%D >= 0} {
%W xview scroll [expr {-%D/30}] units
} else {
- %W xview scroll [expr {29-%D/30}] units
+ %W xview scroll [expr {(29-%D)/30}] units
}
}
}