File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,11 @@ export default class {
5959 if ( visualization ) {
6060 for ( let value of buffer )
6161 visConsole . addLine ( value ) ;
62+ visConsole . lines [ buffer . indexOf ( 2017 ) ] . classList . add ( "highlighted" ) ;
63+ visConsole . lines [ ( buffer . indexOf ( 2017 ) + 1 ) % buffer . length ] . classList . add ( "strongly-highlighted" ) ;
64+ visConsole . container . scrollTop = visConsole . lines [ ( buffer . indexOf ( 2017 ) + 1 ) % buffer . length ] . offsetTop - visConsole . container . offsetHeight / 2 ;
6265 }
6366
64- visConsole . lines [ buffer . indexOf ( 2017 ) ] . classList . add ( "highlighted" ) ;
65- visConsole . lines [ ( buffer . indexOf ( 2017 ) + 1 ) % buffer . length ] . classList . add ( "strongly-highlighted" ) ;
66- visConsole . container . scrollTop = visConsole . lines [ ( buffer . indexOf ( 2017 ) + 1 ) % buffer . length ] . offsetTop - visConsole . container . offsetHeight / 2 ;
67-
6867 return buffer [ ( buffer . indexOf ( 2017 ) + 1 ) % buffer . length ] ;
6968 }
7069 else {
You can’t perform that action at this time.
0 commit comments