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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -150,7 +150,7 @@
{% endblock %} {% endblock %}
</div> </div>
{% block scripts %} {% block scripts %}
<script src="{{ base_url }}/assets/javascripts/application-ae2e7c9801.js"></script> <script src="{{ base_url }}/assets/javascripts/application-4f7a197d35.js"></script>
<script>app.initialize({url:{base:"{{ base_url }}"}})</script> <script>app.initialize({url:{base:"{{ base_url }}"}})</script>
{% for path in extra_javascript %} {% for path in extra_javascript %}
<script src="{{ path }}"></script> <script src="{{ path }}"></script>

View File

@ -154,11 +154,6 @@ function initialize(config) { // eslint-disable-line func-style
}) })
})).listen() })).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 */ /* Listener: close drawer when anchor links are clicked */
new Material.Event.MatchMedia("(max-width: 959px)", new Material.Event.MatchMedia("(max-width: 959px)",
new Material.Event.Listener("[data-md-component=navigation] [href^='#']", new Material.Event.Listener("[data-md-component=navigation] [href^='#']",