Thank you very much for the reply!
Both of this scripts work and they can be enough of a fix, but is it possible to limit the zoom in a similar way (instead of disabling it)? For example, with minZoom and maxZoom or something? I want the user to be able to zoom in, for example, on a document in the scene, so they can see what is written from closer.