1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-27 17:00:54 +01:00

Fixed uninitialized overflow scrolling on main pane for iOS

This commit is contained in:
squidfunk 2017-08-30 15:36:13 +07:00 committed by Martin Donath
parent 3f80ada54d
commit aff623aaac
4 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
mkdocs-material-1.9.1 (2017-XX-XX)
* Fixed uninitialized overflow scrolling on main pane for iOS
mkdocs-material-1.9.0 (2017-08-29)
* Added info (synonym: todo) style for Admonition

View File

@ -150,7 +150,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ base_url }}/assets/javascripts/application-3700c4cc12.js"></script>
<script src="{{ base_url }}/assets/javascripts/application-f3ab9e5ff8.js"></script>
{% set languages = lang.t("search.languages").split(",") %}
{% if languages | length and languages[0] != "" %}
{% set path = base_url + "/assets/javascripts/lunr" %}

View File

@ -50,7 +50,8 @@ export default class Scrolling {
setup() {
/* Initially set overflow scrolling on main pane */
this.el_.children[1].style.webkitOverflowScrolling = "touch"
const main = this.el_.children[this.el_.children.length - 1]
main.style.webkitOverflowScrolling = "touch"
/* Find all toggles and check which one is active */
const toggles = this.el_.querySelectorAll("[data-md-toggle]")