Socket
Socket
Sign inDemoInstall

@n8tb1t/use-scroll-position

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@n8tb1t/use-scroll-position - npm Package Compare versions

Comparing version 1.0.35 to 1.0.36

6

CHANGELOG.md

@@ -0,1 +1,7 @@

#### 1.0.36 (2019-09-20)
##### New Features
* skip listener when no window ([7fafbb2e](https://github.com/n8tb1t/use-scroll-position/commit/7fafbb2e7638f41c340a979a53a0605718413e09))
#### 1.0.35 (2019-07-03)

@@ -2,0 +8,0 @@

4

lib/useScrollPosition.js

@@ -51,2 +51,6 @@ "use strict";

(0, _react.useLayoutEffect)(function () {
if (!isBrowser) {
return;
}
var handleScroll = function handleScroll() {

@@ -53,0 +57,0 @@ if (wait) {

2

package.json
{
"name": "@n8tb1t/use-scroll-position",
"version": "1.0.35",
"version": "1.0.36",
"author": "n8tb1t <n8tb1t@gmail.com>",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -30,2 +30,6 @@ /* eslint-disable react-hooks/exhaustive-deps */

useLayoutEffect(() => {
if (!isBrowser) {
return
}
const handleScroll = () => {

@@ -32,0 +36,0 @@ if (wait) {

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