New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

raf-scroll

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raf-scroll - npm Package Compare versions

Comparing version
1.3.0
to
1.4.0
+4
-1
index.js

@@ -53,7 +53,10 @@ 'use strict';

function getEvent() {
var scroll = scrollTop();
if (ticking) {
var scroll = scrollTop();
deltaY = scroll - scrollY;
}
scrollY = scroll;
return {

@@ -60,0 +63,0 @@ scrollY: scrollY,

+1
-1
{
"name": "raf-scroll",
"version": "1.3.0",
"version": "1.4.0",
"description": "A scroll event that fires only once per frame.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,3 +40,3 @@ raf-scroll

rafScroll.add(function onScroll(event) {
if (window.innerHeight + event.scrollY >= document..offsetHeight - window.innerHeight * 0.5) {
if (window.innerHeight + event.scrollY >= document.offsetHeight - window.innerHeight * 0.5) {
triggerInfiniteScroll();

@@ -46,2 +46,2 @@ }

```
```