diff options
author | marc_culler <marc.culler@gmail.com> | 2023-11-12 14:58:54 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2023-11-12 14:58:54 (GMT) |
commit | d31dfdbe331a357ed76d8962597577f45c984a24 (patch) | |
tree | eb502f2d771105245cba2f88e155462d00311a97 /library | |
parent | 7aab45dcbe2f7f30ddd45a4793082a44f2cb325d (diff) | |
download | tk-d31dfdbe331a357ed76d8962597577f45c984a24.zip tk-d31dfdbe331a357ed76d8962597577f45c984a24.tar.gz tk-d31dfdbe331a357ed76d8962597577f45c984a24.tar.bz2 |
Give the new flag a name in text.tcl.
Diffstat (limited to 'library')
-rw-r--r-- | library/text.tcl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/text.tcl b/library/text.tcl index eeb20fd..3fca1f0 100644 --- a/library/text.tcl +++ b/library/text.tcl @@ -455,30 +455,30 @@ bind Text <B2-Motion> { } } set ::tk::Priv(prevPos) {} - +set HiresScrollMask 512 bind Text <MouseWheel> { - if {[ expr %s & 512 ]} { + if {[ expr %s & $HiresScrollMask ]} { tk::MouseWheel %W y %D -1.0 pixels } else { tk::MouseWheel %W y [tk::ScaleNum %D] -4.0 pixels } } bind Text <Option-MouseWheel> { - if {[ expr %s & 512 ]} { + if {[ expr %s & $HiresScrollMask ]} { tk::MouseWheel %W y %D pixels } else { tk::MouseWheel %W y [tk::ScaleNum %D] -1.2 pixels } } bind Text <Shift-MouseWheel> { - if {[ expr %s & 512 ]} { + if {[ expr %s & $HiresScrollMask ]} { tk::MouseWheel %W x %D -1.0 pixels } else { tk::MouseWheel %W x [tk::ScaleNum %D] -4.0 pixels } } bind Text <Shift-Option-MouseWheel> { - if {[ expr %s & 512 ]} { + if {[ expr %s & $HiresScrollMask ]} { tk::MouseWheel %W x %D -1.0 pixels } else { tk::MouseWheel %W x [tk::ScaleNum %D] -1.2 pixels |