enthought / enthought/enable

Add zoom_at_point() method to enable.Viewport

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
97
Forks
45
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.