latticesurgery-com/web-ui

[Feature Request] Keep the lattice centered when zooming

Opened this issue · 0 comments

Issue Description

When you zoom in and out all that it really does is resize the lattice. So if you are looking at something and zoom out it moves to the top and to the left. This is confusing behaviour.

It would be nice if it were possible to zoom in and out from the center of the window. That is keeping the part of the window that is in the center always in the center a-la-google-maps.

Proposed Solution

Use some math to recompute the lattice coordinates so that, when zooming, the centered part of the lattice stays in place.