Fix acpl chart select (why does this work?)

pull/9436/head
Benedikt Werner 2021-07-17 13:10:19 +02:00
parent a57af5ab31
commit 8e3dbc048e
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
2 changed files with 1 additions and 6 deletions

View File

@ -81,7 +81,6 @@ lichess.advantageChart = function (data, trans, el) {
threshold: 0,
lineWidth: 1,
color: '#d85000',
allowPointSelect: true,
cursor: 'pointer',
states: {
hover: {

View File

@ -21,11 +21,7 @@ export default function (element: HTMLElement, ctrl: AnalyseCtrl) {
$menu = $('.analyse__underboard__menu'),
$timeChart = $('#movetimes-chart'),
inputFen = document.querySelector('.analyse__underboard__fen') as HTMLInputElement,
unselect = (chart: Highcharts.ChartObject) => {
chart.getSelectedPoints().forEach(function (point) {
point.select(false);
});
};
unselect = (chart: Highcharts.ChartObject) => chart.getSelectedPoints().forEach(point => point.select(false));
let lastFen: string;
if (!lichess.AnalyseNVUI) {