YZarytskyi / react-voice-visualizer

React library for audio recording and visualization using the Web Audio API
https://www.npmjs.com/package/react-voice-visualizer
MIT License
105 stars 23 forks source link

Bug: the main container does not handle resize events #9

Open Johnrobmiller opened 6 months ago

Johnrobmiller commented 6 months ago

If I resize the main container, i.e., the container with the classvoice-visualizer, the canvas does not resize.

For me, this resulted in a problem where resizing the container in Chrome did not effect the canvas width (which was 0px at the time, making me think it was not rendering.)

Other users might need to resize the container for other reasons.

YZarytskyi commented 1 month ago

Could you provide more details, please? How did you resize the container? Resize works as native "resize" event on window element