The zoom in and zoom out buttons change the mode to sky cam for a moment and the does the zooming. If zooms are done in momCam or jrCam modes, the mode is swithched to sky cam temporarily and zooming operations are done. Then any mouse click to th screen will change the mode back to what it was.


Here is the source code.