fix: 🐛 scroll locking not always working correctly
This commit is contained in:
parent
9552e4713f
commit
3e7d50dc1b
2 changed files with 1 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
min-height: 100dvh;
|
||||
}
|
||||
|
||||
body.scroll-lock {
|
||||
body[inert] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,12 +5,10 @@
|
|||
|
||||
const open = () => {
|
||||
dialog.showModal();
|
||||
document.body.classList.toggle('scroll-lock');
|
||||
document.body.inert = true;
|
||||
};
|
||||
|
||||
const close = (result) => {
|
||||
document.body.classList.toggle('scroll-lock');
|
||||
document.body.inert = false;
|
||||
storeProxy.setItem('isHorny', result);
|
||||
if (result && storeProxy.getItem('isInHornyJail') !== 'true') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue