Skip to content

Commit 61d4b63

Browse files
committed
1 parent c780b3f commit 61d4b63

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-scroll-anim",
3-
"version": "2.7.1",
3+
"version": "2.7.2",
44
"description": "scroll-anim anim component for react",
55
"keywords": [
66
"react",

src/util.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ export function noop() {
114114
}
115115

116116
export const getPassive = () => {
117+
if (windowIsUndefined) {
118+
return false;
119+
}
117120
let passiveSupported = false;
118121
window.addEventListener(
119122
'test',

0 commit comments

Comments
 (0)