From 9786ec18e50079f2def4f132c8a13d451d3cca2c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 16 Apr 2017 20:19:56 +0200 Subject: [PATCH] Fix navigation for mobile --- Controller.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Controller.js b/Controller.js index c9aee0c..f0afae7 100644 --- a/Controller.js +++ b/Controller.js @@ -88,7 +88,11 @@ } if (!this.navigation[e.id].isVisible()) { - e.nextElementSibling.checked = false; + let width = window.innerWidth + || document.documentElement.clientWidth + || document.body.clientWidth; + + e.nextElementSibling.checked = width < 800 ? true : false; } e.scrollTop = this.navigation[e.id].getScrollPosition().y;