diff options
author | csaba <csaba> | 2023-12-01 11:14:26 (GMT) |
---|---|---|
committer | csaba <csaba> | 2023-12-01 11:14:26 (GMT) |
commit | 8de2fd37d9a31b09faef7451a1dadeee69b1bf09 (patch) | |
tree | 73a229a4c8edffd7af2995020ec1257134fdcdcc /library/ttk | |
parent | 4e24f43cde351b068bf94b3654926f2e5ade91b1 (diff) | |
download | tk-8de2fd37d9a31b09faef7451a1dadeee69b1bf09.zip tk-8de2fd37d9a31b09faef7451a1dadeee69b1bf09.tar.gz tk-8de2fd37d9a31b09faef7451a1dadeee69b1bf09.tar.bz2 |
Adapted scrollbar.test to the improvements in scrlbar.tcl; reverted the changes in scrlbar.tcl and ttk/notebook.tcl made in [c0b55af4].
Diffstat (limited to 'library/ttk')
-rw-r--r-- | library/ttk/notebook.tcl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/library/ttk/notebook.tcl b/library/ttk/notebook.tcl index 3d277a4..d8ed23b 100644 --- a/library/ttk/notebook.tcl +++ b/library/ttk/notebook.tcl @@ -98,13 +98,10 @@ proc ttk::notebook::CondCycleTab {w axis dir {factor 1.0}} { variable ::tk::Priv incr Priv(${axis}Events) - if {[info exists Priv(xEvents)] && [info exists Priv(yEvents)]} { - - if {($Priv(xEvents) + $Priv(yEvents) > 10) && - ($axis eq "x" && $Priv(xEvents) < $Priv(yEvents) || - $axis eq "y" && $Priv(yEvents) < $Priv(xEvents))} { + if {($Priv(xEvents) + $Priv(yEvents) > 10) && + ($axis eq "x" && $Priv(xEvents) < $Priv(yEvents) || + $axis eq "y" && $Priv(yEvents) < $Priv(xEvents))} { return - } } CycleTab $w $dir $factor |