mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
a09611a580
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
14 lines
332 B
JavaScript
14 lines
332 B
JavaScript
// 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;
|
|
}
|