summaryrefslogtreecommitdiffstats
path: root/library/scrlbar.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
commit0d5336db012f45753abace489f18f0ca299c6961 (patch)
treeb1bf3280a9046df99226158978502eeb26f5b0a3 /library/scrlbar.tcl
parente97381a6d921de403516d5b761539a450f4af83c (diff)
parent1320b8a2a9c1269a345d44d673a7a35707fbbe9c (diff)
downloadtk-core-tip-626.zip
tk-core-tip-626.tar.gz
tk-core-tip-626.tar.bz2
Merge 9.0core-tip-626
Diffstat (limited to 'library/scrlbar.tcl')
-rw-r--r--library/scrlbar.tcl18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/scrlbar.tcl b/library/scrlbar.tcl
index 9e210f6..960eb44 100644
--- a/library/scrlbar.tcl
+++ b/library/scrlbar.tcl
@@ -145,12 +145,12 @@ bind Scrollbar <Shift-Option-MouseWheel> {
tk::ScrollByUnits %W hv %D -12.0
}
bind Scrollbar <TouchpadScroll> {
- lassign [tk::PreciseScrollDeltas %D] deltaX deltaY
- if {$deltaX != 0 && [%W cget -orient] eq "horizontal"} {
- tk::ScrollbarScrollByPixels %W h $deltaX
+ lassign [tk::PreciseScrollDeltas %D] tk::Priv(deltaX) tk::Priv(deltaY)
+ if {$tk::Priv(deltaX) != 0 && [%W cget -orient] eq "horizontal"} {
+ tk::ScrollbarScrollByPixels %W h $tk::Priv(deltaX)
}
- if {$deltaY != 0 && [%W cget -orient] eq "vertical"} {
- tk::ScrollbarScrollByPixels %W v $deltaY
+ if {$tk::Priv(deltaY) != 0 && [%W cget -orient] eq "vertical"} {
+ tk::ScrollbarScrollByPixels %W v $tk::Priv(deltaY)
}
}
@@ -477,7 +477,7 @@ proc ::tk::ScrollTopBottom {w x y} {
proc ::tk::ScrollButton2Down {w x y} {
variable ::tk::Priv
if {![winfo exists $w]} {
- return
+ return
}
set element [$w identify $x $y]
if {[string match {arrow[12]} $element]} {
@@ -493,8 +493,8 @@ proc ::tk::ScrollButton2Down {w x y} {
update idletasks
if {[winfo exists $w]} {
- $w configure -activerelief sunken
- $w activate slider
- ScrollStartDrag $w $x $y
+ $w configure -activerelief sunken
+ $w activate slider
+ ScrollStartDrag $w $x $y
}
}