Skip to content

Commit

Permalink
Fix artifacts when scrolling on phone (caused by onresize triggered b…
Browse files Browse the repository at this point in the history
…y navbar hiding/showing) (#42)
  • Loading branch information
v6ak committed Oct 15, 2023
1 parent a27b268 commit 862adc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/main/scala/com/v6ak/zbdb/ChartJsUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 862adc7

Please sign in to comment.