Fixed go to now button not displayed on first canvas click bug

This commit is contained in:
l_samenv
2024-07-26 11:38:14 +02:00
parent dd422e89d8
commit 4a21f24c45

View File

@ -508,8 +508,8 @@ let graphs = (function (){
let trect = evt.target.getBoundingClientRect();
let X = evt.clientX - trect.x, Y = evt.clientY - trect.y;
showLegends(true, false);
setLiveMode();
cursorLine(X);
setLiveMode();
update();
for (let gr of graph_array.slice(0, ngraphs)) {
if (gr && gr.chart.canvas == evt.target) {