Fixed go to now button not displayed on first canvas click bug
This commit is contained in:
@ -508,8 +508,8 @@ let graphs = (function (){
|
|||||||
let trect = evt.target.getBoundingClientRect();
|
let trect = evt.target.getBoundingClientRect();
|
||||||
let X = evt.clientX - trect.x, Y = evt.clientY - trect.y;
|
let X = evt.clientX - trect.x, Y = evt.clientY - trect.y;
|
||||||
showLegends(true, false);
|
showLegends(true, false);
|
||||||
setLiveMode();
|
|
||||||
cursorLine(X);
|
cursorLine(X);
|
||||||
|
setLiveMode();
|
||||||
update();
|
update();
|
||||||
for (let gr of graph_array.slice(0, ngraphs)) {
|
for (let gr of graph_array.slice(0, ngraphs)) {
|
||||||
if (gr && gr.chart.canvas == evt.target) {
|
if (gr && gr.chart.canvas == evt.target) {
|
||||||
|
Reference in New Issue
Block a user