summaryrefslogtreecommitdiffstats
path: root/library/ttk
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-22 15:29:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-22 15:29:53 (GMT)
commit68fc0a0ef4781d53802b28f569935acedc875a92 (patch)
treea61c0e8557619f26c7f56678a0da6eff1883868c /library/ttk
parent127c180c66bf291cae359b4c83fcfce3961af8be (diff)
downloadtk-68fc0a0ef4781d53802b28f569935acedc875a92.zip
tk-68fc0a0ef4781d53802b28f569935acedc875a92.tar.gz
tk-68fc0a0ef4781d53802b28f569935acedc875a92.tar.bz2
Use some more "(x|y)view scroll units" automatic rounding in bindings.
Diffstat (limited to 'library/ttk')
-rw-r--r--library/ttk/utils.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/ttk/utils.tcl b/library/ttk/utils.tcl
index 4827aa3..3729254 100644
--- a/library/ttk/utils.tcl
+++ b/library/ttk/utils.tcl
@@ -298,12 +298,12 @@ proc ttk::bindMouseWheel {bindtag callback} {
#
bind TtkScrollable <MouseWheel> \
- { %W yview scroll [expr {%D/-120}] units }
+ { %W yview scroll [expr {%D/-120.0}] units }
bind TtkScrollable <Option-MouseWheel> \
- { %W yview scroll [expr {%D/-12}] units }
+ { %W yview scroll [expr {%D/-12.0}] units }
bind TtkScrollable <Shift-MouseWheel> \
- { %W xview scroll [expr {%D/-120}] units }
+ { %W xview scroll [expr {%D/-120.0}] units }
bind TtkScrollable <Shift-Option-MouseWheel> \
- { %W xview scroll [expr {%D/-12}] units }
+ { %W xview scroll [expr {%D/-12.0}] units }
#*EOF*