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

react-use-window-scroll

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use-window-scroll - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

dist/hooks/useScrollBy.d.ts
/**
* See documentation: [useScrollBy](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollby--page)
* See documentation: [useScrollBy](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollby--docs)
*

@@ -4,0 +4,0 @@ * This hook scrolls the page by the specified vertical and horizontal amount by using the Window Web API's Window.scrollBy function.

@@ -33,3 +33,3 @@ "use strict";

/**
* See documentation: [useScrollBy](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollby--page)
* See documentation: [useScrollBy](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollby--docs)
*

@@ -36,0 +36,0 @@ * This hook scrolls the page by the specified vertical and horizontal amount by using the Window Web API's Window.scrollBy function.

/**
* See documentation: [useScrollTo](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--page)
* See documentation: [useScrollTo](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--docs)
*

@@ -4,0 +4,0 @@ * This hook scrolls the page to the specified page coordinates using the Window Web API's Window.scrollTo function. Smooth scrolling behavior (native to the browser) is supported by providing ScrollToOptions.

@@ -33,3 +33,3 @@ "use strict";

/**
* See documentation: [useScrollTo](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--page)
* See documentation: [useScrollTo](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--docs)
*

@@ -36,0 +36,0 @@ * This hook scrolls the page to the specified page coordinates using the Window Web API's Window.scrollTo function. Smooth scrolling behavior (native to the browser) is supported by providing ScrollToOptions.

{
"name": "react-use-window-scroll",
"version": "1.1.3",
"version": "1.1.4",
"coreVersion": "3.0.5",

@@ -5,0 +5,0 @@ "author": "Justin Mahar <contact@justinmahar.com>",

@@ -22,3 +22,3 @@ <h2 align="center">

<a href="https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--page#hook-example"><img src="https://justinmahar.github.io/react-use-window-scroll/demo.gif" alt="Demo" /></a>
<a href="https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--docs#hook-example"><img src="https://justinmahar.github.io/react-use-window-scroll/demo.gif" alt="Demo" /></a>

@@ -29,4 +29,4 @@ ## Overview

- [`useScrollBy`](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollby--page) - Returns a function to scroll the page up or down by any amount, in pixels. Supports smooth scrolling.
- [`useScrollTo`](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--page) - Returns a function to scroll the page to any page coordinates, in pixels. Supports smooth scrolling.
- [`useScrollBy`](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollby--docs) - Returns a function to scroll the page up or down by any amount, in pixels. Supports smooth scrolling.
- [`useScrollTo`](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--docs) - Returns a function to scroll the page to any page coordinates, in pixels. Supports smooth scrolling.

@@ -106,3 +106,3 @@ Click either of those to see a live demo (at bottom of page).

Read full [useScrollBy docs](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollby--page).
Read full [useScrollBy docs](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollby--docs).

@@ -130,3 +130,3 @@ ### useScrollTo

Read full [useScrollTo docs](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--page).
Read full [useScrollTo docs](https://justinmahar.github.io/react-use-window-scroll/?path=/story/hooks-usescrollto--docs).

@@ -167,2 +167,2 @@ <!-- [lock:typescript] ๐Ÿšซ--------------------------------------- -->

See [LICENSE.md](https://justinmahar.github.io/react-use-window-scroll/?path=/story/license--page).
See [LICENSE.md](https://justinmahar.github.io/react-use-window-scroll/?path=/docs/license--docs).
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