Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small code typo #349

Open
rexdk opened this issue Apr 4, 2021 · 1 comment
Open

small code typo #349

rexdk opened this issue Apr 4, 2021 · 1 comment

Comments

@rexdk
Copy link

rexdk commented Apr 4, 2021

Thank you for a super and very useful article on https://webglfundamentals.org/webgl/lessons/webgl-multiple-views.html.

I think there is a typo where you say:
"
If you want to handle horizontal scrolling just change this line
...
to this
gl.canvas.style.transform = translateX(${window.scrollX} translateY(${window.scrollY}px);
"

I think it should be
gl.canvas.style.transform = translateX(${window.scrollX}px) translateY(${window.scrollY}px);

as in the code

Just a small thing. Thanks again.

@greggman
Copy link
Member

greggman commented Apr 4, 2021

thanks!!

9b1d976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants