File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1170,18 +1170,22 @@ class Toolbar {
11701170 delPluginIcon . onclick = ( ) => delPlugin_onclick ( this . activity ) ;
11711171 }
11721172
1173- // Horizontal Scroll
1173+ // Horizontal Scroll - sync icon state with current scroll setting
11741174 const enableHorizScrollIcon = docById ( "enableHorizScrollIcon" ) ;
11751175 const disableHorizScrollIcon = docById ( "disableHorizScrollIcon" ) ;
11761176
1177- if ( enableHorizScrollIcon ) {
1178- enableHorizScrollIcon . style . display = "block" ;
1177+ if ( enableHorizScrollIcon && disableHorizScrollIcon ) {
1178+ // Show correct icon based on current scroll state
1179+ if ( this . activity . scrollBlockContainer ) {
1180+ enableHorizScrollIcon . style . display = "none" ;
1181+ disableHorizScrollIcon . style . display = "block" ;
1182+ } else {
1183+ enableHorizScrollIcon . style . display = "block" ;
1184+ disableHorizScrollIcon . style . display = "none" ;
1185+ }
11791186 enableHorizScrollIcon . onclick = ( ) => {
11801187 setScroller ( this . activity ) ;
11811188 } ;
1182- }
1183-
1184- if ( disableHorizScrollIcon ) {
11851189 disableHorizScrollIcon . onclick = ( ) => {
11861190 setScroller ( this . activity ) ;
11871191 } ;
You can’t perform that action at this time.
0 commit comments