How to enable page scrolling on <canvas> element #520
Unanswered
hanhanxue
asked this question in
Help Wanted!
Replies: 1 comment 5 replies
-
Hello! You can disable the canvas' scroll event using the The following example shows how you can disable scrolling event for the entire canvas. <Unity
unityProvider={unityProvider}
disabledCanvasEvents={["scroll"]}
/> See the API reference for more information: https://react-unity-webgl.dev/docs/api/disabled-canvas-events. Best of luck with your project! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! So I noticed that when the cursor is over the element scrolling is not working. How could I enable it? Especially when the canvas is full width it's not ideal to be stuck with using the scroll bar to navigate up / down the page.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions