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 pointer-clickable pan/zoom controls #91

Open
dave-doty opened this issue Dec 30, 2019 · 0 comments
Open

add pointer-clickable pan/zoom controls #91

dave-doty opened this issue Dec 30, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@dave-doty
Copy link
Member

Currently the only way to zoom is to use the mouse wheel (or simulate it with two-finger motion on the touchpad).

Add custom controls (see here: http://ariutta.github.io/svg-pan-zoom/demo/custom-controls.html) that can be clicked to pan and zoom. There should be buttons with + and - to zoom in and out, and four arrows that can be clicked to pan.

Ideally, position these directly on the SVG elements. Since they themselves should not be panned and zoomed, we need to ensure that the svg-pan-zoom library doesn't place them under the element that controls the matrix transformation.

@dave-doty dave-doty added the enhancement New feature or request label Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant