@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
15 lines (14 loc) • 540 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const material_1 = require("@mui/material");
/**
* Prevents scrolling of content behind the backdrop
*/
function BackdropScrollDisabled(props) {
const onTouchMove = (event) => {
event.preventDefault();
};
return (0, jsx_runtime_1.jsx)(material_1.Backdrop, Object.assign({}, props, { onTouchMove: onTouchMove, style: { touchAction: 'none' } }));
}
exports.default = BackdropScrollDisabled;
;