From: Steinar H. Gunderson Date: Mon, 6 Jul 2020 16:58:48 +0000 (+0200) Subject: Fix a Chrome JS warning; we cannot preventDefault even if we try. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=ba7dfa60f729183239e883e2b6df73b724dae418 Fix a Chrome JS warning; we cannot preventDefault even if we try. --- diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index 7ab77cd..ef0fd2a 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -560,7 +560,6 @@ function swipe(e) var new_x = (e.changedTouches[0].pageX - swipe_start_x); set_swipe_pos(new_x, null); } - e.preventDefault(); } window.onload = function() {