shuding / cobe

5kB WebGL globe lib.
https://cobe.vercel.app
MIT License
3.15k stars 169 forks source link

docs: improve examples by adding removeEventListener to resize events #77

Closed danieljpgo closed 8 months ago

danieljpgo commented 1 year ago

The examples of the implementation using React are a life saver, but I believe we can improve them by adding the removeEventListener for the resize event.

window.removeEventListener('resize', onResize);

Here the PR: https://github.com/shuding/cobe/pull/76

danieljpgo commented 8 months ago

Merged