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

@react-hook/window-scroll

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-hook/window-scroll - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "@react-hook/window-scroll",
"version": "1.0.5",
"version": "1.0.6",
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/window-scroll#readme",

@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/react-hook",

<hr>
<div align="center">
<h1 align="center">
@react-hook/window-scroll
useWindowScroll()
</h1>

@@ -12,2 +12,5 @@ </div>

</a>
<a aria-label="Types" href="https://www.npmjs.com/package/@react-hook/window-scroll">
<img alt="Types" src="https://img.shields.io/npm/types/@react-hook/window-scroll?style=for-the-badge&labelColor=24292e">
</a>
<a aria-label="NPM version" href="https://www.npmjs.com/package/@react-hook/window-scroll">

@@ -41,2 +44,4 @@ <img alt="NPM Version" src="https://img.shields.io/npm/v/@react-hook/window-scroll?style=for-the-badge&labelColor=24292e">

#### Options
| | Type | Default | Description |

@@ -46,7 +51,7 @@ | --- | -------- | ------- | ------------------------------------------------------------------------------- |

#### Returns `scrollY: integer`
#### Returns `scrollY: number`
| | Type | Description |
| ------- | --------- | ------------------------------------------------------- |
| scrollY | `integer` | The current scroll position of the window on the y-axis |
| | Type | Description |
| ------- | -------- | ------------------------------------------------------- |
| scrollY | `number` | The current scroll position of the window on the y-axis |

@@ -53,0 +58,0 @@ ## LICENSE

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