react-scroll-control 1.0.4 โ†’ 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -50,6 +50,15 @@ Using npm:
50
50
  npm install react-scroll-control
51
51
  ```
52
52
 
53
+ ## ๐Ÿงช Examples
54
+
55
+ ```js
56
+ useSmoothScroll(0.3); // very slow scrolling
57
+ useSmoothScroll(0.5); // smooth & natural
58
+ useSmoothScroll(1); // default browser speed
59
+ useSmoothScroll(1.5); // fast scrolling
60
+ ```
61
+
53
62
  ## ๐Ÿš€ Usage
54
63
 
55
64
  ```jsx
@@ -66,7 +75,6 @@ function App() {
66
75
  }
67
76
  ```
68
77
 
69
-
70
78
  ## โš ๏ธ Important Notes
71
79
 
72
80
  - This hook replaces native mouse-wheel scrolling
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-scroll-control",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {