swimlane / ngx-graph

Graph visualization library for angular
https://swimlane.github.io/ngx-graph
MIT License
922 stars 285 forks source link

fix: disable mousewheel directive when zoom is disabled #541

Open alesbrelih opened 5 months ago

alesbrelih commented 5 months ago

This allows to normally scroll through page when zoom is disabled.

What kind of change does this PR introduce? (check one with "x")

What is the current behavior? (You can also link to an open issue here)

When zoom is disabled you can't use mouse wheel to scroll to the bottom of page if mouse is over the ngx-graph component.

What is the new behavior?

If zoom is disabled you can normally use your mouse wheel to scroll.

Does this PR introduce a breaking change? (check one with "x")

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information: