mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Remove measureScrollbar function from emoji_utils
The measureScrollbar function has been deleted from the emoji_utils.ts file. This simplifies the module export list by removing a function that was unnecessary or out of context.
This commit is contained in:
parent
2bcd355289
commit
28b4212206
1 changed files with 1 additions and 25 deletions
|
@ -218,28 +218,4 @@ function intersect(a: [], b: []) {
|
|||
return uniqA.filter((item) => uniqB.includes(item));
|
||||
}
|
||||
|
||||
// https://github.com/sonicdoe/measure-scrollbar
|
||||
function measureScrollbar() {
|
||||
const div = document.createElement('div');
|
||||
|
||||
div.style.width = '100px';
|
||||
div.style.height = '100px';
|
||||
div.style.overflow = 'scroll';
|
||||
div.style.position = 'absolute';
|
||||
div.style.top = '-9999px';
|
||||
|
||||
document.body.appendChild(div);
|
||||
const scrollbarWidth = div.offsetWidth - div.clientWidth;
|
||||
document.body.removeChild(div);
|
||||
|
||||
return scrollbarWidth;
|
||||
}
|
||||
|
||||
export {
|
||||
getData,
|
||||
getSanitizedData,
|
||||
uniq,
|
||||
intersect,
|
||||
unifiedToNative,
|
||||
measureScrollbar,
|
||||
};
|
||||
export { getData, getSanitizedData, uniq, intersect, unifiedToNative };
|
||||
|
|
Loading…
Reference in a new issue