roeierez / infinite-list

Infinite list in javascript that scrolls in 60fps
623 stars 45 forks source link

Any plans to support desktop scrolling too? #6

Open vgoklani opened 9 years ago

vgoklani commented 9 years ago

I would like to have one codebase that runs on both :)

roeierez commented 9 years ago

Yes, I got several requests for desktop support, currently I am working on supporting auto detect height of list items so I will probably work on that right after.

roeierez commented 8 years ago

The desktop support is now implemented in 'native_scroller' branch. You can test it by adding a configuration option to the list which is called 'useNativeScroller'. e.g:

`list = new InfiniteList({

    itemHeightGetter: function(){ return 50;},

    itemRenderer: function(index, domElement){
        domElement.innerHTML = 'Item ' + index;
    },

    initialPage: {
        itemsCount: 200
    }

})`

Soon it is going to be merged into master.

guo-yu commented 8 years ago

👍

ggriffithsIDBS commented 6 years ago

Came across this repo, and this code is working wonderfully for my usecase, however, in the need for the desktop scrolling, any plans to release it?