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.7.12 to 1.7.13

5

CHANGELOG.md
#### Changelog
> 1.7.13
- Removed deprecated warnings, Ensure 'begin' event fires on all scroll events.
> 1.7.12
- Animating scroll-time is now consistent
> 1.7.11

@@ -3,0 +8,0 @@ - Should now scroll to exact position

4

modules/__tests__/animate-scroll-test.js

@@ -175,6 +175,4 @@ 'use strict';

_animateScroll2.default.scrollToBottom({ duration: duration });
setTimeout(function () {
var offset = 16;
(0, _expect2.default)(window.scrollY || window.pageYOffset).toEqual(node.offsetHeight - window.innerHeight + offset);
(0, _expect2.default)(window.scrollY || window.pageYOffset).toEqual(document.documentElement.scrollTop);
done();

@@ -181,0 +179,0 @@ }, waitDuration);

@@ -180,2 +180,5 @@ 'use strict';

options.data.delayTimeout = window.setTimeout(function () {
if (_scrollEvents2.default.registered['begin']) {
_scrollEvents2.default.registered['begin'](options.data.to, options.data.target);
}
requestAnimationFrameHelper.call(window, easedAnimate);

@@ -186,2 +189,5 @@ }, options.delay);

if (_scrollEvents2.default.registered['begin']) {
_scrollEvents2.default.registered['begin'](options.data.to, options.data.target);
}
requestAnimationFrameHelper.call(window, easedAnimate);

@@ -188,0 +194,0 @@ };

@@ -284,4 +284,4 @@ "use strict";

}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
key: 'UNSAFE_componentWillReceiveProps',
value: function UNSAFE_componentWillReceiveProps(nextProps) {
if (this.props.name !== nextProps.name) {

@@ -288,0 +288,0 @@ this.registerElems(nextProps.name);

@@ -59,4 +59,4 @@ 'use strict';

}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
key: 'UNSAFE_componentWillReceiveProps',
value: function UNSAFE_componentWillReceiveProps(nextProps) {
if (this.props.name !== nextProps.name) {

@@ -63,0 +63,0 @@ this.registerElems(nextProps.name);

@@ -15,10 +15,2 @@ 'use strict';

var _reactDom = require('react-dom');
var _reactDom2 = _interopRequireDefault(_reactDom);
var _utils = require('./utils');
var _utils2 = _interopRequireDefault(_utils);
var _scrollSpy = require('./scroll-spy');

@@ -25,0 +17,0 @@

@@ -75,6 +75,2 @@ 'use strict';

if (_scrollEvents2.default.registered.begin) {
_scrollEvents2.default.registered.begin(to, target);
}
props.absolute = true;

@@ -88,2 +84,6 @@

if (!props.smooth) {
if (_scrollEvents2.default.registered['begin']) {
_scrollEvents2.default.registered['begin'](to, target);
}
if (containerElement === document) {

@@ -90,0 +90,0 @@ window.scrollTo(0, scrollOffset);

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

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

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