• Resolved Brian P

    (@bburgay)


    Hi,

    Your window.onscroll function defined in custom.js line 104 is overriding the function defined in my theme and is breaking some functionality there.

    
    SFSI("#sfsi_floater"), window.onscroll = e;
    

    So I wanted to suggest changing that to window.addEventListener to avoid conflicts with other themes/plugins in general.

    
    SFSI("#sfsi_floater"), window.addEventListener("scroll", e);
    

    I already reached out to the theme developers to have them change their code to window.addEventListener as well.

    Thanks,
    Brian

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘window.onscroll function overriding and breaking other plugins/themes’ is closed to new replies.