Skip to content

Commit

Permalink
firefox fix
Browse files Browse the repository at this point in the history
  • Loading branch information
increpare committed May 9, 2015
1 parent fb621e0 commit 9abddc0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inliner -n play.html > play_inlined.txt
echo copying files
cp gzipper bin/
cp -r *.* bin/
cp .htaccess ../bin/
cp .htaccess bin/
echo compressing html
java -jar ~/progs/htmlcompressor-1.5.3.jar -r bin/ -o bin/
echo gzipping site
Expand Down
6 changes: 4 additions & 2 deletions pinball.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,8 @@ function press(evt){
evt = evt || window.event;
keyBuffer[evt.keyCode]=true;

if ([32, 37, 38, 39, 40].indexOf(event.keyCode) > -1) {
prevent(event);
if ([32, 37, 38, 39, 40].indexOf(evt.keyCode) > -1) {
prevent(evt);
}

/*
Expand Down Expand Up @@ -1167,6 +1167,8 @@ function ballCollides(){
var bpyr=Math.round(bpy);
if (exitTriggered ===false && bpxr<=exitPointX&&exitPointX<=bpxr+4 && bpyr<=exitPointY&&exitPointY<=bpyr+4 ){
exitTriggered=true;
tilting=false;
keyBuffer[38]=false;
wonindex=13;
bpx=-1000;
bpy=-1000;
Expand Down
2 changes: 1 addition & 1 deletion play_inlined.txt

Large diffs are not rendered by default.

0 comments on commit 9abddc0

Please sign in to comment.