OpenJSCAD.org
OpenJSCAD.org copied to clipboard
fix(regl-renderer): added handling of element resize events
All Submissions:
- [x] Have you followed the guidelines in our Contributing document?
- [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
- [x] Does your submission pass tests?
It would ne better to use resize observer. It reacts to changes in canvas size that can be result of layout change or some other Dom changes
https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver