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

react-scroll

Package Overview
Dependencies
Maintainers
1
Versions
120
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.7.7 to 1.7.8

2

modules/mixins/utils.js

@@ -30,3 +30,3 @@ 'use strict';

var scrollOffset = function scrollOffset(c, t) {
return c === document ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset) : getComputedStyle(c).position === "relative" ? t.offsetTop : t.offsetTop - c.offsetTop;
return c === document ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset) : getComputedStyle(c).position === "relative" ? t.offsetTop : t.getBoundingClientRect().top + c.scrollTop;
};

@@ -33,0 +33,0 @@

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

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

@@ -19,2 +19,14 @@ ## React Scroll

Checkout examples
Live example
> [Basic](https://codesandbox.io/s/py5opl2280)
> [Basic-Keydown](https://codesandbox.io/s/l94kv62o4m)
> [Container](https://codesandbox.io/s/3zznv27l5)
> [With-hash](https://codesandbox.io/s/y0zzrk1v1j)
> [With-overflow](https://codesandbox.io/s/l94kv62o4m)
> [Code](https://github.com/fisshy/react-scroll/blob/master/examples/basic/app.js)

@@ -21,0 +33,0 @@ ```js

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