Skip to content

Commit

Permalink
Fix bug preventing up button from being used more than once to go to …
Browse files Browse the repository at this point in the history
…previous pages.
  • Loading branch information
Jonathan Alland committed Sep 13, 2019
1 parent c7e0d60 commit 9544022
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,9 @@ function displayArticlePage(articleList, articleNum, pageNum) {
articleSelectMenu.selection(0, articleNum + 1);
}
}
else if (e.button === 'up' || e.button === 'back') {
articleCard.hide();
if (e.button === 'up' || e.button === 'back') {
console.log('Hi');
this.hide();
}
});
articleCard.on('longClick', 'select', function() {
Expand Down

0 comments on commit 9544022

Please sign in to comment.