Hi,
there is a problem of onepage menu – first section always trying to be active menu and made some bugs.
In console.log in ‘activate’ method i got always 2 sections- current and first.
Hey,
I checked your website and your one page layout works fine on my end. Which browser and OS are you using?
Best regards,
Yigit
on Windows and on Mac OS, Chrome / Safari – doesn’t matter. Maybe u catch when i made some changes.
Here is by debug info.
for (i = offsets.length; i--;) {
if (scrollTop >= offsets[i]) {
console.log(scrollTop);
console.log(offsets[i]);
console.log(targets[i]);
}
return
#services
1333
0
#promo
1333
0
As u can see – at 1333px offset I also got 0px, and with #services – I got #promo section too.
Thats my fault, plugin for changing menu color make clone of it, so I got x2 items in offsets variable.
Fix is to change at line 247 this.$body
to $('#header_main')
Also, I hope u will do some checks for duplicated items.It’s usefull when someone want to do something, like me with menu =)