Skip to content

Commit

Permalink
Preventing scroll when hitting nav keys
Browse files Browse the repository at this point in the history
  • Loading branch information
imakewebthings committed Aug 16, 2011
1 parent 98968de commit 85b035c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/deck.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,11 @@ that use the API provided by core.
switch (e.which) {
case options.keys.next:
methods.next();
e.preventDefault();
break;
case options.keys.previous:
methods.prev();
e.preventDefault();
break;
}
});
Expand Down

0 comments on commit 85b035c

Please sign in to comment.