@advdominion/get-scrollbar-width
v2.0.0
Published
Get window scrollbar width (if present):
Downloads
23
Readme
get-scrollbar-width
Get window scrollbar width (if present):
import { getScrollbarWidth } from '@advdominion/get-scrollbar-width';
console.log(getScrollbarWidth());
Get system scrollbar width:
import { getScrollbarWidth } from '@advdominion/get-scrollbar-width';
console.log(getScrollbarWidth(false));