@@ -541,7 +541,7 @@ window.ComponentCascadeDot = class {
541
541
}
542
542
}
543
543
} ) ;
544
- if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTop = to_first_index * 27 ;
544
+ if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTo ( 0 , to_first_index * 27 ) ;
545
545
if ( nodes . length > 0 ) {
546
546
this . selectToParent ( nodes , checked ) ;
547
547
}
@@ -573,7 +573,7 @@ window.ComponentCascadeDot = class {
573
573
this . expand ( data , D , false ) ;
574
574
}
575
575
} ) ;
576
- if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTop = to_first_index * 27 ;
576
+ if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTo ( 0 , to_first_index * 27 ) ;
577
577
this . selectToChildren ( stack + 1 , children ) ;
578
578
}
579
579
@@ -703,7 +703,7 @@ window.ComponentCascadeDot = class {
703
703
if ( to_first_index === null ) to_first_index = index ;
704
704
}
705
705
} ) ;
706
- if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTop = to_first_index * 27 ;
706
+ if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTo ( 0 , to_first_index * 27 ) ;
707
707
this . checkAll ( stack + 1 , children , check ) ;
708
708
}
709
709
} ;
@@ -1204,7 +1204,7 @@ window.ComponentCascadeLine = class {
1204
1204
let lastKey = len - 1 ;
1205
1205
let currentStackDocuments = object . STACKS [ 0 ] ;
1206
1206
currentStackDocuments . append ( object . insertLabelDom ( object . dimensional_data [ 0 ] [ lastKey ] , lastKey , 0 ) ) ;
1207
- object . STACKS [ 0 ] . scrollTop = lastKey * 27 ;
1207
+ object . STACKS [ 0 ] . scrollTo ( 0 , lastKey * 27 ) ;
1208
1208
currentStackDocuments . lastChild . click ( ) ;
1209
1209
object . PLANE_DOM . remove ( ) ;
1210
1210
} ) ;
@@ -1325,7 +1325,7 @@ window.ComponentCascadeLine = class {
1325
1325
}
1326
1326
}
1327
1327
} ) ;
1328
- if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTop = to_first_index * 27 ;
1328
+ if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTo ( 0 , to_first_index * 27 ) ;
1329
1329
if ( nodes . length > 0 ) {
1330
1330
this . selectToParent ( nodes ) ;
1331
1331
}
@@ -1357,7 +1357,7 @@ window.ComponentCascadeLine = class {
1357
1357
this . expand ( data , D , false ) ;
1358
1358
}
1359
1359
} ) ;
1360
- if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTop = to_first_index * 27 ;
1360
+ if ( to_first_index !== null ) this . STACKS [ stack ] . scrollTo ( 0 , to_first_index * 27 ) ;
1361
1361
this . selectToChildren ( stack + 1 , children ) ;
1362
1362
}
1363
1363
@@ -1457,7 +1457,7 @@ window.ComponentCascadeLine = class {
1457
1457
object . STACKS [ nextStack ] . append (
1458
1458
object . insertLabelDom ( object . dimensional_data [ nextStack ] [ index ] , index , nextStack ) ) ;
1459
1459
dom . insertAdjacentHTML ( 'afterbegin' , `<i class="left">${ _component . caret_right_circle } </i>` ) ;
1460
- object . STACKS [ nextStack ] . scrollTop = index * 27 ;
1460
+ object . STACKS [ nextStack ] . scrollTo ( 0 , index * 27 ) ;
1461
1461
} else {
1462
1462
let lastKey = data . nodes [ data . nodes . length - 1 ] ;
1463
1463
let currentStackDocuments = object . STACKS [ nextStack ] . childNodes ;
@@ -1483,7 +1483,7 @@ window.ComponentCascadeLine = class {
1483
1483
object . dimensional_data [ nextStack ] . forEach ( ( d , index ) => {
1484
1484
if ( index > newIndex ) currentStackDocuments [ index ] . setAttribute ( 'data-k' , index ) ;
1485
1485
} ) ;
1486
- object . STACKS [ nextStack ] . scrollTop = newIndex * 27 ;
1486
+ object . STACKS [ nextStack ] . scrollTo ( 0 , newIndex * 27 ) ;
1487
1487
}
1488
1488
if ( ! Array . isArray ( data . nodes ) ) data . nodes = [ ] ;
1489
1489
data . nodes . push ( key ) ;
@@ -1684,7 +1684,7 @@ window.ComponentCascadeLine = class {
1684
1684
let DOM = this . STACKS [ pick . stack ] . childNodes [ pick . index ] ;
1685
1685
if ( ! ( DOM instanceof HTMLElement ) ) return ;
1686
1686
DOM . classList . add ( 'dlp-label-active' ) ;
1687
- this . STACKS [ pick . stack ] . scrollTop = pick . index * 27 ;
1687
+ this . STACKS [ pick . stack ] . scrollTo ( 0 , pick . index * 27 ) ;
1688
1688
DOM . click ( ) ;
1689
1689
}
1690
1690
0 commit comments