Fixed unresponsive overlay on android

This commit is contained in:
squidfunk
2017-04-08 16:05:54 +02:00
committed by Martin Donath
parent ccde3239f8
commit 5df7a85618
4 changed files with 4 additions and 9 deletions

View File

@@ -154,11 +154,6 @@ function initialize(config) { // eslint-disable-line func-style
})
})).listen()
/* Listener: prevent touches on overlay if navigation is active */
new Material.Event.MatchMedia("(max-width: 1219px)",
new Material.Event.Listener("[data-md-component=overlay]", "touchstart",
ev => ev.preventDefault()))
/* Listener: close drawer when anchor links are clicked */
new Material.Event.MatchMedia("(max-width: 959px)",
new Material.Event.Listener("[data-md-component=navigation] [href^='#']",