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
When there is a Svelvet canvas on the website, that canvas prevents the default behaiviour of scrolling with mouse wheel and instead zooms out in the canvas which are both undesirable. Is it possible to prevent every interaction with a Svelvet canvas and instead use the standard initial view set by the developer (possibly set to fitView)?
The text was updated successfully, but these errors were encountered:
I have the same requirement. The Svelvet component has a fixedZoom property that prevents zoom. It's not in the documentation, and I've opened a request to update documentation: #482
To prevent pan, I've tried two methods - adding css style pointer-events: none to the parent div, and adding an overlay component with high z-index on top of the canvas. Both don't seem to have an effect on the panning. It does seem v6 has a method to disable pan
When there is a Svelvet canvas on the website, that canvas prevents the default behaiviour of scrolling with mouse wheel and instead zooms out in the canvas which are both undesirable. Is it possible to prevent every interaction with a Svelvet canvas and instead use the standard initial view set by the developer (possibly set to fitView)?
The text was updated successfully, but these errors were encountered: