MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / hide

Function hide

src/components/scrollbar/index.js:237–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235 }
236
237 function hide() {
238 if (touchStarted) return;
239 $scrollbar.dataset.hidden = true;
240 $scrollbar.classList.add("hide");
241 scrollbarTimeoutRemove = setTimeout(() => $scrollbar.remove(), 300);
242 if (typeof onhide === "function") onhide();
243 }
244
245 function hideImmediately() {
246 $scrollbar.dataset.hidden = true;

Callers

nothing calls this directly

Calls 3

addMethod · 0.80
onhideFunction · 0.50
removeMethod · 0.45

Tested by

no test coverage detected