@@ -183,14 +183,14 @@ var InfiniteScroll = (function(_Component) {
183183
184184 var offset = void 0 ;
185185 if ( this . props . useWindow ) {
186+ var doc =
187+ document . documentElement ||
188+ document . body . parentNode ||
189+ document . body ;
186190 var scrollTop =
187191 scrollEl . pageYOffset !== undefined
188192 ? scrollEl . pageYOffset
189- : (
190- document . documentElement ||
191- document . body . parentNode ||
192- document . body
193- ) . scrollTop ;
193+ : doc . scrollTop ;
194194 if ( this . props . isReverse ) {
195195 offset = scrollTop ;
196196 } else {
@@ -234,16 +234,28 @@ var InfiniteScroll = (function(_Component) {
234234 children = _props . children ,
235235 element = _props . element ,
236236 hasMore = _props . hasMore ,
237+ initialLoad = _props . initialLoad ,
237238 isReverse = _props . isReverse ,
238239 loader = _props . loader ,
240+ loadMore = _props . loadMore ,
241+ pageStart = _props . pageStart ,
239242 ref = _props . ref ,
243+ threshold = _props . threshold ,
244+ useCapture = _props . useCapture ,
245+ useWindow = _props . useWindow ,
240246 props = _objectWithoutProperties ( _props , [
241247 'children' ,
242248 'element' ,
243249 'hasMore' ,
250+ 'initialLoad' ,
244251 'isReverse' ,
245252 'loader' ,
253+ 'loadMore' ,
254+ 'pageStart' ,
246255 'ref' ,
256+ 'threshold' ,
257+ 'useCapture' ,
258+ 'useWindow' ,
247259 ] ) ;
248260
249261 props . ref = function ( node ) {
0 commit comments