iamdustan / smoothscroll

Scroll Behavior polyfill
http://iamdustan.com/smoothscroll/
MIT License
3.85k stars 339 forks source link

smoothscroll no working when added @media query to document #147

Open erovas opened 4 years ago

erovas commented 4 years ago

Hi everyone.

The polyfill no working when I added @media query (CSS) to HTML document (dont matter if into or tag, the problem persist), if I remove @media query of document the polyfill working perfectly.

why happen this it?

Microsoft Edge 44.18362.449.0 Microsoft EdgeHTML 18.18362

PSDT: I'm sorry for my english

jeremenichelli commented 4 years ago

Hi @Imanol91, thanks for submitting the issue. It's really hard to guess where the issue could be coming from or if it's even a bug from this polyfill.

Can you try to reproduce this bug in a reduced test case? (An HTML file, with the media query that is triggering the issue for you and the polyfill should be enough.)

You can share it as a snippet here or use some sandbox free utility like codepen.io or codesandbox.io and share the link, this will help us test and see how we can solve it and isolating the library will also help us see if there's no other library or code actually causing the issue.

Thanks!