You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe this isn't necessarily an issue with the plugin, but I cannot seem to get zoom to work at all, panning works just fine? After reading through the other issues, I noticed that I was required to add a viewbox, which I did, but zoom still refuses to work? I have checked that the events are firing and sure enough, they are. Width and height are just 100% respectively.
svg.panzoom.js needs to be able to figure out the dimensions of your svg somehow and it needs a viewbox. If only a percentage size is given or none, it will try offsetWidth and offsetHeight. However, these are only defined, when the svg is the root svg.
So either set an absolute width and height or make sure you call panzoom on the outermost svg
Maybe this isn't necessarily an issue with the plugin, but I cannot seem to get zoom to work at all, panning works just fine? After reading through the other issues, I noticed that I was required to add a viewbox, which I did, but zoom still refuses to work? I have checked that the events are firing and sure enough, they are. Width and height are just 100% respectively.
The text was updated successfully, but these errors were encountered: