Jesus sucks
This commit is contained in:
11
backend/frontend/node_modules/@restart/ui/cjs/getScrollbarWidth.js
generated
vendored
Normal file
11
backend/frontend/node_modules/@restart/ui/cjs/getScrollbarWidth.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = getBodyScrollbarWidth;
|
||||
/**
|
||||
* Get the width of the vertical window scrollbar if it's visible
|
||||
*/
|
||||
function getBodyScrollbarWidth(ownerDocument = document) {
|
||||
const window = ownerDocument.defaultView;
|
||||
return Math.abs(window.innerWidth - ownerDocument.documentElement.clientWidth);
|
||||
}
|
||||
Reference in New Issue
Block a user