@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
12 lines (11 loc) • 401 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Backdrop } from '@mui/material';
/**
* Prevents scrolling of content behind the backdrop
*/
export default function BackdropScrollDisabled(props) {
const onTouchMove = (event) => {
event.preventDefault();
};
return _jsx(Backdrop, Object.assign({}, props, { onTouchMove: onTouchMove, style: { touchAction: 'none' } }));
}