Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Commit

Permalink
worker demo. "px" is required for inline style's left
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Aug 26, 2014
1 parent 0e4aff9 commit d8ba40d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/worker-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
var direction = 39; // right

square.style.top = 0;
square.style.left = 20;
square.style.left = '20px';
square.style.height = SQUARE_SIZE;
square.style.width = SQUARE_SIZE;

Expand Down Expand Up @@ -89,4 +89,4 @@
// start the square animating
requestAnimationFrame(moveSquare);

}());
}());

0 comments on commit d8ba40d

Please sign in to comment.