webgl-fundamentals icon indicating copy to clipboard operation
webgl-fundamentals copied to clipboard

small code typo

Open rexdk opened this issue 3 years ago • 1 comments

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.

rexdk avatar Apr 04 '21 06:04 rexdk

thanks!!

https://github.com/gfxfundamentals/webgl-fundamentals/commit/9b1d976e2f33189f9a17b3a9943a9bb8f91d1080

greggman avatar Apr 04 '21 11:04 greggman