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:
parent
362ae0a081
commit
0a0abba7f9
3 changed files with 4 additions and 4 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue