1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed image position on slider

This commit is contained in:
Fedor Katurov 2019-11-07 17:02:54 +07:00
parent 362ae0a081
commit 0a0abba7f9
3 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ const BetterScrollDialog: FC<IProps> = ({
const ref = useRef(null);
useEffect(() => {
disableBodyScroll(ref.current);
disableBodyScroll(ref.current, { reserveScrollBarGap: true });
return () => enableBodyScroll(ref.current);
}, [ref]);