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
I have been trying to disable zoom altogether, but the following code for creating engine doesn't work for trackpad pinch. I want to disable that too . Please help engine = createEngine({ registerDefaultZoomCanvasAction: false, });
The text was updated successfully, but these errors were encountered:
I don't know if it helps but for me I was trying to disable the browser zooming when pinched, but still keep the zooming in the canvas as the browser was zooming in while the canvas was zooming out and gave very strange effects.
In Chrome the React onWheel event listener (which pinch zoom uses) is registered on the document which is now passive by default so you cant use event.preventDefault in onWheel, it has to be in a registerEventListener, so I wrapped my Canvas element in a div with a ref and added an event listener on it to prevent wheel scrolls within the div from reaching the browser.
Hi,
I have been trying to disable zoom altogether, but the following code for creating engine doesn't work for trackpad pinch. I want to disable that too . Please help
engine = createEngine({ registerDefaultZoomCanvasAction: false, });
The text was updated successfully, but these errors were encountered: