New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-lazyload

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lazyload - npm Package Compare versions

Comparing version

to
1.3.1

2

lib/index.js

@@ -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 [![npm version](https://badge.fury.io/js/react-lazyload.svg)](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 @@