FIX: makes click-interceptor working with touchstart (#6890)
Probable regression due to the removal of Modernizr.
This commit is contained in:
parent
18055f5e37
commit
fd2dd8d67d
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue