Fix movetime chart selectPly
parent
a646c4aba7
commit
e491f69635
|
@ -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));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue