Fix movetime chart selectPly

pull/9155/head
Benedikt Werner 2021-06-12 10:27:44 +02:00
parent a646c4aba7
commit e491f69635
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ lichess.movetimeChart = function (data, trans, hunter) {
const white = ply % 2 !== 0;
const serie = (white ? 0 : 1) + (showTotal ? 2 : 0);
const turn = Math.floor((ply - 1 - data.game.startedAtTurn) / 2);
const point = chart.series[serie].data[turn];
const point = this.highcharts.series[serie].data[turn];
if (point) point.select();
else this.highcharts.getSelectedPoints().forEach(point => point.select(false));
};