lenis 1.1.12 → 1.1.13
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.
- package/README.md +2 -2
- package/dist/lenis.d.ts +5 -1
- package/dist/lenis.js +909 -950
- package/dist/lenis.js.map +1 -1
- package/dist/lenis.min.js +1 -1
- package/dist/lenis.min.js.map +1 -1
- package/dist/lenis.mjs +1 -1
- package/dist/lenis.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ import Lenis from 'lenis'
|
|
|
45
45
|
using scripts:
|
|
46
46
|
|
|
47
47
|
```html
|
|
48
|
-
<script src="https://unpkg.com/lenis@1.1.
|
|
48
|
+
<script src="https://unpkg.com/lenis@1.1.13/dist/lenis.min.js"></script>
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
|
|
@@ -97,7 +97,7 @@ html.lenis, html.lenis body {
|
|
|
97
97
|
or link the CSS file:
|
|
98
98
|
|
|
99
99
|
```html
|
|
100
|
-
<link rel="stylesheet" href="https://unpkg.com/lenis@1.1.
|
|
100
|
+
<link rel="stylesheet" href="https://unpkg.com/lenis@1.1.13/dist/lenis.css">
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
or import it:
|
package/dist/lenis.d.ts
CHANGED
|
@@ -226,7 +226,11 @@ declare global {
|
|
|
226
226
|
|
|
227
227
|
type OptionalPick<T, F extends keyof T> = Omit<T, F> & Partial<Pick<T, F>>;
|
|
228
228
|
declare class Lenis {
|
|
229
|
-
|
|
229
|
+
private _isScrolling;
|
|
230
|
+
private _isStopped;
|
|
231
|
+
private _isLocked;
|
|
232
|
+
private _preventNextNativeScrollEvent;
|
|
233
|
+
private _resetVelocityTimeout;
|
|
230
234
|
/**
|
|
231
235
|
* Whether or not the user is touching the screen
|
|
232
236
|
*/
|