FIX: makes click-interceptor working with touchstart (#6890)

FIX: makes click-interceptor working with touchstart (#6890)

Probable regression due to the removal of Modernizr.

diff --git a/app/assets/javascripts/discourse/initializers/click-interceptor.js.es6 b/app/assets/javascripts/discourse/initializers/click-interceptor.js.es6
index ccafb1d..2830fdd 100644
--- a/app/assets/javascripts/discourse/initializers/click-interceptor.js.es6
+++ b/app/assets/javascripts/discourse/initializers/click-interceptor.js.es6
@@ -4,7 +4,7 @@ import DiscourseURL from "discourse/lib/url";
 export default {
   name: "click-interceptor",
   initialize() {
-    $("#main").on("click.discourse", "a", interceptClick);
+    $("#main").on("touchstart.discourse click.discourse", "a", interceptClick);
     $(window).on("hashchange", () =>
       DiscourseURL.routeTo(document.location.hash)
     );

GitHub sha: fd2dd8d6

1 Like

Revert "FIX: makes click-interceptor working with touchstart (#6890)"