MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / getScrollbarWidth

Function getScrollbarWidth

client/src/utils/scrollbar-width.ts:3–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import store from 'store';
2
3export function getScrollbarWidth(): number {
4 const storedWidth = store.get('monacoScrollbarWidth') as number;
5 return storedWidth >= 5 || storedWidth <= 25 ? storedWidth : 5;
6}

Callers 4

ScrollbarWidthSettingsFunction · 0.90
EditorFunction · 0.90
editorDidMountFunction · 0.90
getEditorContentWidthFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected