airfranceklm / ng-lazy-image

Angular directive for loading responsive image when container (which is preventing reflow) is in viewport.
http://afklm.github.io/ng-lazy-image/
MIT License
351 stars 64 forks source link

scrollY on IE #2

Closed Sljubura closed 9 years ago

Sljubura commented 9 years ago

Hi, I had issues on IE 9/10/11 (Didn't test on 8). Found out that you're using $window[0].scrollY, which doens't have good support on IE. I think that $document.scrollTop() has much better support.

Nice module BTW, thanks!

SquadraCorse commented 9 years ago

Thanks for feedback. I will do some tests at work. Thanks for making me aware. I will need to make more tests on saucelabs as well :)

bower install afkl-lazy-image#fe066115eb26e05b969807074bc3b25d6b0a9799 -p

SquadraCorse commented 9 years ago

Change is now validated on IE8+, make sure your page uses a DOCTYPE

Sljubura commented 9 years ago

That's great. Thanks you!