OpenJSCAD.org icon indicating copy to clipboard operation
OpenJSCAD.org copied to clipboard

fix(regl-renderer): added handling of element resize events

Open z3dev opened this issue 7 months ago • 1 comments

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?

z3dev avatar May 11 '25 05:05 z3dev

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

hrgdavor avatar May 11 '25 10:05 hrgdavor