webgl-fundamentals
webgl-fundamentals copied to clipboard
small code typo
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.
thanks!!
https://github.com/gfxfundamentals/webgl-fundamentals/commit/9b1d976e2f33189f9a17b3a9943a9bb8f91d1080