File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,22 +17,22 @@ export function bindScrollBarListener(eventManager: EventManager) {
1717
1818 // 监听滚动条组件pointover事件
1919 scenegraph . component . vScrollBar . addEventListener ( 'pointerover' , ( e : any ) => {
20- if ( verticalVisible === 'focus' ) {
20+ if ( verticalVisible === 'focus' || verticalVisible === 'scrolling' ) {
2121 stateManager . showVerticalScrollBar ( ) ;
2222 }
2323 } ) ;
2424 scenegraph . component . hScrollBar . addEventListener ( 'pointerover' , ( e : any ) => {
25- if ( horizontalVisible === 'focus' ) {
25+ if ( horizontalVisible === 'focus' || horizontalVisible === 'scrolling' ) {
2626 stateManager . showHorizontalScrollBar ( false , 'body' ) ;
2727 }
2828 } ) ;
2929 scenegraph . component . frozenHScrollBar . addEventListener ( 'pointerover' , ( e : any ) => {
30- if ( horizontalVisible === 'focus' ) {
30+ if ( horizontalVisible === 'focus' || horizontalVisible === 'scrolling' ) {
3131 stateManager . showHorizontalScrollBar ( false , 'frozen' ) ;
3232 }
3333 } ) ;
3434 scenegraph . component . rightFrozenHScrollBar . addEventListener ( 'pointerover' , ( e : any ) => {
35- if ( horizontalVisible === 'focus' ) {
35+ if ( horizontalVisible === 'focus' || horizontalVisible === 'scrolling' ) {
3636 stateManager . showHorizontalScrollBar ( false , 'rightFrozen' ) ;
3737 }
3838 } ) ;
Original file line number Diff line number Diff line change @@ -1432,9 +1432,9 @@ export class StateManager {
14321432 }
14331433 showVerticalScrollBar ( autoHide ?: boolean ) {
14341434 this . table . scenegraph . component . showVerticalScrollBar ( ) ;
1435+ clearTimeout ( this . _clearVerticalScrollBar ) ;
14351436 if ( autoHide ) {
14361437 // 滚轮触发滚动条显示后,异步隐藏
1437- clearTimeout ( this . _clearVerticalScrollBar ) ;
14381438 this . _clearVerticalScrollBar = setTimeout ( ( ) => {
14391439 this . table . scenegraph ?. component . hideVerticalScrollBar ( ) ;
14401440 } , 1000 ) ;
@@ -1446,9 +1446,9 @@ export class StateManager {
14461446 showHorizontalScrollBar ( autoHide ?: boolean , target : 'body' | 'frozen' | 'rightFrozen' | 'all' = 'all' ) {
14471447 this . table . scenegraph . component . showHorizontalScrollBar ( target ) ;
14481448 this . table . scenegraph ?. component . showFrozenColumnShadow ( ) ;
1449+ clearTimeout ( this . _clearHorizontalScrollBar ) ;
14491450 if ( autoHide ) {
14501451 // 滚轮触发滚动条显示后,异步隐藏
1451- clearTimeout ( this . _clearHorizontalScrollBar ) ;
14521452 this . _clearHorizontalScrollBar = setTimeout ( ( ) => {
14531453 this . table . scenegraph ?. component . hideFrozenColumnShadow ( ) ;
14541454 this . table . scenegraph ?. component . hideHorizontalScrollBar ( ) ;
You can’t perform that action at this time.
0 commit comments