I really try to solve it for few day, and looked everywhere..
In my project I want to generate and delete objects inside the user screen with the following feature:
When there is "not enough" space on the screen, and objects start to go out of the viewport, I want to zoom out, to see those object.. and when there is lots of "free space" on the screen, I want to zoom back in.
Very simple, but I can't solve it.
In my last implementation, there is a constant jiggle of zoom in and out, which I need to get rid of.. sorry, not a coder, but I try my best.
Please check the following files:
The event sheet:
Every help will be really appreciated, thanks!