Skip to content

Commit

Permalink
FIX: preventDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatcher committed Jul 9, 2018
1 parent 13b87e5 commit 8b2f903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion labyrinth.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const labyrinth = (function () {
setTimeout(keepMoving, 100);
};
if (window.innerWidth>850) {
arrows.style.visibility = 'hidden';
arrows.style.display = 'none';
}

greeting();
Expand Down Expand Up @@ -74,6 +74,7 @@ const labyrinth = (function () {
return;
}
processEvent(event.key);
event.preventDefault();
}, false);
let sLastArrow = '';

Expand Down

0 comments on commit 8b2f903

Please sign in to comment.