Permalink
Browse files

fixed geometry example

  • Loading branch information...
1 parent 1cdd7d1 commit f4f682d541649176322741c79db106497ce104c2 @boblemarin committed Feb 28, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 examples/geometry.html
View
@@ -81,11 +81,12 @@
function onScroll(e){
var scrollPosition = document.body.scrollTop;
var windowHeight = window.innerHeight;
- var bodyHeight = document.height;
+ var bodyHeight = document.body.clientHeight;
var p = scrollPosition / (bodyHeight-windowHeight);
container.setRotationY( 720 * p ).update();
- console.log("scroll " + p );
+ console.log("scroll " + bodyHeight );
}
+
function update() {
container
.rotateY(2)

0 comments on commit f4f682d

Please sign in to comment.