mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-23 06:13:38 -04:00
Fixed uninitialized overflow scrolling on main pane for iOS
This commit is contained in:
@@ -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]")
|
||||
|
||||
Reference in New Issue
Block a user