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

How can I disable zooming? #54

Closed
WuglyakBolgoink opened this issue Mar 9, 2018 · 5 comments
Closed

How can I disable zooming? #54

WuglyakBolgoink opened this issue Mar 9, 2018 · 5 comments

Comments

@WuglyakBolgoink
Copy link

Is it possible?

@isaacplmann
Copy link
Contributor

No, but I would like this feature too. I'd welcome a PR. A simple enableZoom input that is checked inside the onZoom function should do it. If you can't make a PR, I'll get to it when I can.

@gergo0206
Copy link

I created a pull request for this feature.
It can be found here: #64

@CoreyCole
Copy link
Contributor

CoreyCole commented Aug 1, 2018

It is now possible

<ngx-graph [enableZoom]="false"></ngx-graph>

This works to disable zoom on the graph, but now the scroll wheel does nothing. I have other content on the page above my graph and I cannot scroll up to it. @gergo0206 do you know about this or am I doing something wrong? I've also disabled panning and dragging, but the cursor can't hover for info on a ngx-chart that I have above my ngx-graph because the cursor is stuck in that panning mode.

Is there some CSS properties that I can give to the ngx-graph so that it stays put and can scroll normally in the page, like ngx-charts do? Or is ngx-graph not designed to be used alongside other components in the page?

@CoreyCole
Copy link
Contributor

I opened a different issue about this scrolling problem #110

@assafsun
Copy link
Contributor

l'm closing this issue because it seems that the open issue from this thread is tracked in #110

Let me know if I missed something.

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

5 participants