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

Disable zoom and pan #94

Closed
e-katzenstein opened this issue Dec 3, 2022 · 2 comments · Fixed by #202
Closed

Disable zoom and pan #94

e-katzenstein opened this issue Dec 3, 2022 · 2 comments · Fixed by #202
Labels
help wanted Extra attention is needed

Comments

@e-katzenstein
Copy link

Is there a way to disable zoom and pan? Can't find this in the documentation or the source code.

@e-katzenstein
Copy link
Author

e-katzenstein commented Dec 3, 2022

This is working for me (referencing camera from dom-2d-camera library):

scatterplot.get('camera').config({ isFixed: true })

@flekschas flekschas added the help wanted Extra attention is needed label Dec 4, 2022
@flekschas
Copy link
Owner

Yep, by fixing the camera one can disable pan & zoom. There isn't any extra/custom API in regl-scatterplot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants