MCPcopy Index your code
hub / github.com/microsoft/SandDance / enableBodyScroll

Function enableBodyScroll

docs/app/js/sanddance-app.js:21549–21558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21547 _bodyScrollDisabledCount++;
21548}
21549function enableBodyScroll() {
21550 if (_bodyScrollDisabledCount > 0) {
21551 var doc = (0, _getDocument.getDocument)();
21552 if (doc && doc.body && _bodyScrollDisabledCount === 1) {
21553 doc.body.classList.remove(DisabledScrollClassName);
21554 doc.body.removeEventListener("touchmove", _disableIosBodyScroll);
21555 }
21556 _bodyScrollDisabledCount--;
21557 }
21558}
21559function getScrollbarWidth() {
21560 if (_scrollbarWidth === undefined) {
21561 var scrollDiv = document.createElement("div");

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected