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

@@ -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]")