mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
Fixed: Modal scrolling causing app to scroll on iOS
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
2273be5afd
commit
a09611a580
9 changed files with 78 additions and 12 deletions
13
frontend/src/Utilities/scrollLock.js
Normal file
13
frontend/src/Utilities/scrollLock.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
// Allow iOS devices to disable scrolling of the body/virtual table
|
||||
// when a modal is open. This will prevent focusing an input in a
|
||||
// modal causing the modal to close due to scrolling.
|
||||
|
||||
let scrollLock = false;
|
||||
|
||||
export function isLocked() {
|
||||
return scrollLock;
|
||||
}
|
||||
|
||||
export function setScrollLock(locked) {
|
||||
scrollLock = locked;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue