Hello, I have difficulties making scrollIntoView work when refreshing the page (F5) on when coming back to a the table.
But, when the active player trigger the state change, the scroll work.
Here is my code in the switch case of the onEnteringState function of my .js file.
But, when the active player trigger the state change, the scroll work.
Here is my code in the switch case of the onEnteringState function of my .js file.
Code: Select all
case 'progress':
if (this.isCurrentPlayerActive()) {
$('playersection_'+player_id).scrollIntoView(true);
this.updateClickableProgressTrack(player_id, parseInt(args.args.minPosition),parseInt(args.args.maxPosition));
}
break;