NorthwoodsSoftware / GoJS

JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.

Home Page:http://gojs.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disappearing nodes on canvas, for macOS

Flareonn opened this issue · comments

This error is only reproducible on macOS. In some browsers such as: Safari, Google Chrome.

There is no such problem in Firefox browser.

Initially we thought that the problem was in the use of shadows, but when we gave up shadows, the nodes started disappearing for other reasons. Interaction with opacity of nodes also leads to their temporary disappearance, until the cursor meets a node

2024-04-18.09.15.07.mov

The key point to replay, is that the disappearance of nodes always happens after switching between browser tabs / application windows

This is a known bug with Chrome on M1 macs that they introduced. It's breaking a lot of canvas-based web apps. The bug is here: https://issues.chromium.org/issues/328755781

This is out of our hands, so I'm closing the issue.

If you make sure to use no opacity and no shadows, the issue will be lessened. Possibly gradients too. That is the only workaround I know of right now.