Skip to content
New issue

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

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

Already on GitHub? # to your account

Add orientationchange event to listeners #26

Open
bognarl opened this issue May 9, 2017 · 0 comments
Open

Add orientationchange event to listeners #26

bognarl opened this issue May 9, 2017 · 0 comments

Comments

@bognarl
Copy link

bognarl commented May 9, 2017

Hi I just came across this (bug, idk) looks like phones are not reacting to resize event when the phone changes orientation so I added these lines:

window.addEventListener("orientationchange", function() {
    if(priorityNav.doesItFit)priorityNav.doesItFit(_this);
}, true);

Sorry I am not creating a pull request for this, but for 3 lines it would be overkill for me and probably for you too. :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant