I want to take some action right after zooming has finished, something like document.addEventListener('zoomEnd', onZoomEnd, false) This obviously doesnt work.
How can I do this please. Does the scene or the camera (or even the document) detect state change events like zoomEnd and/or ZoomStart?
Zooming is tricky because it’s discrete when happening on mouse wheel for example. You have to debounce this event yourself usually. So, if a few zoom events happen with some frequency, you only fire the end after the last one.