fabric.Canvas.renderAll() sometimes doesn't work properly.
In Firefox, when debugging if I put a breakpoint right before the renderAll() call and then 'step over', it would re-render properly. However, when execution doesn't stop, sometimes it wouldn't render.
A 0ms long delay before the execution of .renderAll seems to eliminate the problem in Firefox, but not entirely in Safari. In Safari, it still happens sometimes, that the variant selector box appears, but only one or no variant is shown at all.
Both in Safari and Firefox, if I reload the page while the #pg parameter is set (for example meiView.html#pg=2) renderAll doesn't work)
Interestingly in Firefox, the browser cash helps the rendering, that is:
fabric.Canvas.renderAll() sometimes doesn't work properly.
In Firefox, when debugging if I put a breakpoint right before the renderAll() call and then 'step over', it would re-render properly. However, when execution doesn't stop, sometimes it wouldn't render.
A 0ms long delay before the execution of .renderAll seems to eliminate the problem in Firefox, but not entirely in Safari. In Safari, it still happens sometimes, that the variant selector box appears, but only one or no variant is shown at all.
Both in Safari and Firefox, if I reload the page while the #pg parameter is set (for example meiView.html#pg=2) renderAll doesn't work)
Interestingly in Firefox, the browser cash helps the rendering, that is: