Skip to content

Commit 4dcc056

Browse files
author
Malte Wessel
committed
fixed #104
1 parent d787e67 commit 4dcc056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getScrollbarWidth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export default function getScrollbarWidth() {
2020
} else {
2121
scrollbarWidth = 0;
2222
}
23-
return scrollbarWidth;
23+
return scrollbarWidth || 0;
2424
}

0 commit comments

Comments
 (0)