Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zoom_at_point() method to enable.Viewport #12

Open
jwiggins opened this issue Feb 1, 2011 · 0 comments
Open

Add zoom_at_point() method to enable.Viewport #12

jwiggins opened this issue Feb 1, 2011 · 0 comments

Comments

@jwiggins
Copy link
Member

jwiggins commented Feb 1, 2011

Currently the logic for handling zoom in/out at a point is in ViewportZoomTool.normal_mouse_wheel. This is not the best place for it, because it means that one cannot programmatically zoom in to a viewport without attaching this tool and calling the method on the tool. Since the viewport supports zoom, and since doing a "proper" zoom (setting new view bounds, etc.) always requires this logic, this code should be split out into a zoom_at_point() method on the Viewport.

https://svn.enthought.com/enthought/ticket/1294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant