Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #925529

    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.

    • This topic was modified 6 years, 9 months ago by mdxclr.
    #925534

    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

    #925545

    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.

    • This reply was modified 6 years, 9 months ago by mdxclr.
    #925571

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

    #925922

    Hi,

    Great, glad you found the problem and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.