google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.07k stars 295 forks source link

fix(virtual_lists) use existing debounceUpdateView with resize observer #645

Open pedson opened 3 weeks ago

pedson commented 3 weeks ago

Use the existing debounceUpdateView() in place of just updateView() for the resizeObserver(), similar to other updates in the class.

When embedding Neuroglancer in an React app, the lack of debounce causes an infinite update loop and it will not load.

google-cla[bot] commented 3 weeks ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.