Kitware / clique

Graph editor library/application
Apache License 2.0
10 stars 6 forks source link

Limit zoom #62

Open waxlamp opened 9 years ago

waxlamp commented 9 years ago

The transformation matrix can go singular if you zoom out vigorously enough. Even worse, it is possible to wind up with a negative zoom, which creates a strange mirror image of the display (I witnessed Rob Maynard accomplishing this, though neither of us knows precisely how it happened).

To prevent this, we might enforce maximum and minimum zoom levels.