diff --git a/src/templates/pr.html b/src/templates/pr.html index ab4b09f..5041c42 100644 --- a/src/templates/pr.html +++ b/src/templates/pr.html @@ -111,10 +111,14 @@ // Naively switch to next PR when pressing spacebar document.onkeypress = function (e) { - if (e.keyCode === 32) { + if (e.keyCode === 32) { next_pr() } - }; + }; + // Naively switch to next PR when touching the screen + document.ontouchend = function (e) { + next_pr() + }; // How often the PR list is updated setInterval(get_prs, {{ pr_fetch_time }} * 1000)