From 47e4347ac8a513d01d807743b1824966f27ae4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20=C5=A0est=C3=A1k?= Date: Sun, 15 Oct 2023 17:34:09 +0200 Subject: [PATCH] Fix artifacts when scrolling on phone (caused by onresize triggered by navbar hiding/showing) --- client/src/main/scala/com/v6ak/zbdb/ChartJsUtils.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/main/scala/com/v6ak/zbdb/ChartJsUtils.scala b/client/src/main/scala/com/v6ak/zbdb/ChartJsUtils.scala index db089d3..c1c995a 100644 --- a/client/src/main/scala/com/v6ak/zbdb/ChartJsUtils.scala +++ b/client/src/main/scala/com/v6ak/zbdb/ChartJsUtils.scala @@ -116,8 +116,9 @@ object ChartJsUtils { val chart = new Chart(can, plotParams) val resizeHandler: Event => Unit = _ => { + // seems no longer needed //chart.update() - chart.resize() + //chart.resize() } window.addEventListener("resize", resizeHandler)