Closed pavelhoral closed 2 years ago
Also first mouswheel zoom seems to be broken and tries to initialize itself to "fit to contents". But that is probably unrelated bug.
Hi @pavelhoral, Thank you for your report. Centering on load was implemented intentionally, but I did not provide a way to disable it. I have just added this feature and released it. (v0.5.1) Also created an example, please check it out.
By the way, I have not been able to reproduce the mouse wheel zoom problem. If this problem still occurs after this fix, more detailed information would be appreciated. (e.g., browser you use, minimum reproduction code, etc.)
Thank you, awesome work! If I came across the zoom issue again I will create a separate issue here on github.
I am trying to focus on a specific node when the graph gets loaded. However it seems that there is always a call to
panToCenter
afterview:loaded
event is fired.This behavior can be observed on the examples page - https://dash14.github.io/v-network-graph/examples/event.html#capture-all-events:
This behavior forces users to pan in
setTimeout
(so there is a workaround).