toddmotto / echo

Lazy-loading images with data-* attributes

Home Page:http://toddmotto.com/labs/echo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Working with absolute positioned elements

alexcroox opened this issue · comments

commented

I'm using the popular Masonry plugin: http://masonry.desandro.com/ and Zepto

Echo doesn't seem to trigger on scroll, does it have anything to do with the fact Masonry positions the images absolutely?

Possibly. Have you tried calling echo.init() again whilst scrolling?

commented

So fire init() everytime inside of window.onscroll?

It's by far ideal, but trying it to see might work. If that doesn't work
then there must be something up with it.

On 3 June 2014 09:02, Alex Crooks notifications@github.com wrote:

So fire init() everytime inside of window.onscroll?


Reply to this email directly or view it on GitHub
#51 (comment).

Todd Motto | +44 7557 149 519
Lead front-end engineer
toddmotto.com | @toddmotto

commented

For reasons unknown to me adding overflow: visible; to <html> seems to have fixed the onscroll handler for me.