timgatzky / onepagewebsite

Contao extension: Create a one page website structure with regular pages
9 stars 10 forks source link

full-width pages break the 'scroll' event for the menu #6

Closed fritzmg closed 10 years ago

fritzmg commented 10 years ago

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).

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)

timgatzky commented 10 years ago

see answers