mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-12 14:58:41 +00:00
Fix navigation for mobile
This commit is contained in:
parent
0ed1feb765
commit
9786ec18e5
|
|
@ -88,7 +88,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.navigation[e.id].isVisible()) {
|
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;
|
e.scrollTop = this.navigation[e.id].getScrollPosition().y;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user