react-lazyload
Advanced tools
Comparing version
@@ -44,3 +44,3 @@ /** | ||
var scrollTop = parent.scrollTop(); | ||
var scrollTop = parent.scrollTop; | ||
@@ -47,0 +47,0 @@ var _node$getBoundingClientRect = node.getBoundingClientRect(); |
{ | ||
"name": "react-lazyload", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Lazyload your Component, Image or anything matters the performance.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -86,2 +86,14 @@ # react-lazyload [](http://badge.fury.io/js/react-lazyload) | ||
### scroll | ||
Type: Bool Default: true | ||
ONLY SET THIS TO `false` IF YOU SET `wheel` PROPS `true`. | ||
### wheel | ||
Type: Bool Default: false | ||
For overflow containers, scroll event not propagated to `window`, so you should use `wheel` props to make LazyLoad listen `wheel` event instead of `scroll`. Check [this demo](https://jasonslyvia.github.io/react-lazyload/examples/overflow.html) for detail. | ||
### resize | ||
@@ -88,0 +100,0 @@ |
@@ -24,3 +24,3 @@ /** | ||
const scrollTop = parent.scrollTop(); | ||
const scrollTop = parent.scrollTop; | ||
const { height: elementHeight } = node.getBoundingClientRect(); | ||
@@ -27,0 +27,0 @@ |
27375
1.44%135
9.76%