Skip to content
Browse files

Don't try to capture mouse events when in an iframe.

Turns out the issue this was fixing was just caused by pentadactyl. Oops :)
  • Loading branch information...
1 parent 741f1c0 commit c7b3f188ff6c85b9ddca1c771d799ee93bc9e6b9 @aduros committed Aug 8, 2011
Showing with 0 additions and 7 deletions.
  1. +0 −7 projects/tetris/src/tetris/main.js
View
7 projects/tetris/src/tetris/main.js
@@ -78,13 +78,6 @@ document.addEventListener("touchstart", function (event) {
}, true);
window.scrollTo(0, 1);
-// Allows keyboard events when embedded in an iframe
-if (window.top != window) {
- window.addEventListener("click", function (event) {
- window.focus();
- }, true);
-}
-
// App caching
if ("applicationCache" in window) {
applicationCache.addEventListener("updateready", applicationCache.swapCache, false);

0 comments on commit c7b3f18

Please sign in to comment.
Something went wrong with that request. Please try again.