Enable scrolling the page in WebGL

Whenever the cursor/mouse is inside the game, I can’t scroll the webpage. I want to be able to scroll the entire page even if my mouse is inside the screen. My game doesn’t need any kind of scrolling input so it doesn’t matter. How do I do this??

NGUI has better anchoring, because it has more freedom - you're not limited to anchoring to parent object, but you can anchor all 4 sides to different components instead.

I get the extensible part, but that is an issue. Then you have to write your own component or buy some available ones and wonder if they are going to interact correctly together. NGUI has more components out of the box which are guaranteed to interact correctly together. I'm not trying to advocate NGUI, but it sounds to me that it's still better as long as you can afford it.

2 Answers

2

For your case, below will work!
style:
#gameContainer{pointer-events:none; }

html:

And if your content does need mouse interaction (clicking, dragging,...) ?

Hi, maybe this will help you