Camera rotation jump

Hello!!

Actually this is related to a question that I have just closed.
It is there a way of rotating the camera on the Y axis avoiding the upside-down correction, like you have in the TrackBall Controls.

https://jsfiddle.net/y8tc5fo2/65/

Thanks in advance
Attached JSFiddle.

I posted the solution here:
https://discourse.threejs.org/t/trackballcamera/26238/2

This ticket can be closed