Skip to content

Commit 732fee1

Browse files
spitemrdoob
authored andcommitted
fix for retina screens (mrdoob#9138)
1 parent 03c2cb5 commit 732fee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/webgl_gpgpu_water.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@
480480

481481
function setMouseCoords( x, y ) {
482482

483-
mouseCoords.set( ( x / renderer.domElement.width ) * 2 - 1, - ( y / renderer.domElement.height ) * 2 + 1 );
483+
mouseCoords.set( ( x / renderer.domElement.clientWidth ) * 2 - 1, - ( y / renderer.domElement.clientHeight ) * 2 + 1 );
484484
mouseMoved = true;
485485

486486
}

0 commit comments

Comments
 (0)