airbnb / infinity

UITableViews for the web (DEPRECATED)
http://airbnb.io/infinity/
Other
2.8k stars 281 forks source link

Scroll not working when infinity div is placed inside another div #14

Open ibesora opened 12 years ago

ibesora commented 12 years ago

I'm trying to use infinity to scroll a long list of elements. Instead of having the infinity div take all of the webpage space I place it inside another div with a fixed height and width and with scrollbars. Although the contents are first rendered correctly, when the scroll is moved the contents is nor repainted. I suppose it is because the main page scroll is not moved.

elliotcw commented 12 years ago

I had a go at fixing that (https://github.com/elliotcw/infinity), if you put a class of 'scrollable' on your div it will pick up the scroll event.

Have a look at the commit, as I changed some other stuff to get it working with Zepto.

nbergseng commented 11 years ago

Hey guys... just so you know this isn't in the source downloaded from http://airbnb.github.com/infinity. Looks like it's in the infinity.js file in the top level folder on gh, but not in /build/infinity.js.