Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-scroll

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-scroll - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

12

lib/mixins/scroll-spy.js

@@ -25,4 +25,4 @@ var eventThrottler = function(eventHandler) {

var eventHandler = eventThrottler(function(event) {
t.scrollHandler(scrollSpyContainer);
});
t.scrollHandler(scrollSpyContainer);
});
this.scrollSpyContainers.push(scrollSpyContainer);

@@ -50,5 +50,7 @@ scrollSpyContainer.addEventListener('scroll', eventHandler);

var callbacks = this.scrollSpyContainers[this.scrollSpyContainers.indexOf(scrollSpyContainer)].spyCallbacks;
for(var i = 0; i < callbacks.length; i++) {
var position =this.currentPositionY(scrollSpyContainer);
callbacks[i](this.currentPositionY(scrollSpyContainer));
if (callbacks) {
for(var i = 0; i < callbacks.length; i++) {
var position =this.currentPositionY(scrollSpyContainer);
callbacks[i](this.currentPositionY(scrollSpyContainer));
}
}

@@ -55,0 +57,0 @@ },

{
"name": "react-scroll",
"version": "1.1.2",
"version": "1.1.3",
"description": "A scroll component for React.js",

@@ -5,0 +5,0 @@ "main": "lib",

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