File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
476476 this . _instantiationService . setService ( IMouseService , this . _mouseService ) ;
477477
478478 this . viewport = this . _instantiationService . createInstance ( Viewport ,
479- ( amount : number ) => this . scrollLines ( amount , false , ScrollSource . VIEWPORT ) ,
479+ ( amount : number ) => this . scrollLines ( amount , true , ScrollSource . VIEWPORT ) ,
480480 this . _viewportElement ,
481481 this . _viewportScrollArea
482482 ) ;
@@ -511,9 +511,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
511511 this . textarea ! . select ( ) ;
512512 } ) ) ;
513513 this . register ( this . _onScroll . event ( ev => {
514- if ( ev . source !== ScrollSource . VIEWPORT ) {
515- this . viewport ! . syncScrollArea ( ) ;
516- }
514+ this . viewport ! . syncScrollArea ( ) ;
517515 this . _selectionService ! . refresh ( ) ;
518516 } ) ) ;
519517 this . register ( addDisposableDomListener ( this . _viewportElement , 'scroll' , ( ) => this . _selectionService ! . refresh ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments