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

Probable regression due to the removal of Modernizr.
This commit is contained in:
Joffrey JAFFEUX 2019-01-16 17:56:43 +01:00 committed by GitHub
parent 18055f5e37
commit fd2dd8d67d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
);