Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on load scrollToAnchor is not enough using Firefox if page is already loaded #119

Open
pulse-mind opened this issue Dec 3, 2019 · 3 comments
Labels

Comments

@pulse-mind
Copy link

@pulse-mind pulse-mind commented Dec 3, 2019

It works fine on Chrome but not on Firefox.

Hello,

I have a case where the page is already loaded when JS is running (in jquery.multiscroll.js)

 $(window).on('load', function() {
                scrollToAnchor();
                });

If I replace by this (it works)

            if (document.readyState == 'complete'){
                scrollToAnchor();
            }else{
                $(window).on('load', function() {
                scrollToAnchor();
                });
            }

If you need I can fork and do a pull request
Otherwise tell me where I am wrong

And thank you for the job done!!

@alvarotrigo

This comment has been minimized.

Copy link
Owner

@alvarotrigo alvarotrigo commented Dec 3, 2019

Thanks for that! 👍
I'll take a look at it for the next release!

@pulse-mind

This comment has been minimized.

Copy link
Author

@pulse-mind pulse-mind commented Dec 3, 2019

Ok great, do you know when will be the next release ?

@alvarotrigo

This comment has been minimized.

Copy link
Owner

@alvarotrigo alvarotrigo commented Dec 3, 2019

I don't really have a date in mind yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.