When using a full-width layout on your page, the OnePageWebsite Menu will always put the active state on the last page when you start to scroll.
This is because the deltaX and breakPointX variables in the JavaScript code will always be 0 in such a case, for each page element. Thus the code wants to put active on every menu item (which results in the last item having the active state at the end).
When using a full-width layout on your page, the OnePageWebsite Menu will always put the
active
state on the last page when you start to scroll.This is because the
deltaX
andbreakPointX
variables in the JavaScript code will always be0
in such a case, for each page element. Thus the code wants to putactive
on every menu item (which results in the last item having theactive
state at the end).See also https://community.contao.org/de/showthread.php?37832-OnePageWebsite-Eine-one-page-Website-Struktur-mit-der-Seitenstruktur-erstellen&p=312016&viewfull=1#post312016 (and next post)