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

onscrolling

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onscrolling - npm Package Compare versions

Comparing version 2.0.0-beta.3 to 2.0.0-beta.4

dist/test/onscrolling.test.d.ts

8

dist/onscrolling.js

@@ -1,2 +0,1 @@

'use strict';
// Module state

@@ -122,7 +121,5 @@ let isListening = false;

callbackQueue.x = callbackQueue.x.concat(callback);
console.log('adding listener, callbackQueue.x.length', callbackQueue.x.length);
}
if (vertical) {
callbackQueue.y = callbackQueue.y.concat(callback);
console.log('adding listener, callbackQueue.y.length', callbackQueue.y.length);
}

@@ -141,5 +138,3 @@ return () => {

if (index > -1) {
console.log('pre callbackQueue.x.length', callbackQueue.x.length);
callbackQueue.x = callbackQueue.x.toSpliced(index, 1);
console.log('clean up horizontal; index', index, 'callbackQueue.x.length', callbackQueue.x.length);
}

@@ -150,5 +145,3 @@ }

if (index > -1) {
console.log('pre callbackQueue.y.length', callbackQueue.y.length);
callbackQueue.y = callbackQueue.y.toSpliced(index, 1);
console.log('clean up vertical; index', index, 'callbackQueue.y.length', callbackQueue.y.length);
}

@@ -158,3 +151,2 @@ }

if (!callbackQueue.x.length && !callbackQueue.y.length) {
console.log('no listeners left');
cancelTick();

@@ -161,0 +153,0 @@ disableScrollListener();

2

package.json
{
"name": "onscrolling",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.4",
"description": "A better, smoother, more performant window.onscroll event interface using requestAnimationFrame for performance and mobile-compatibility",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc