1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

Convert Utilities to TypeScript

This commit is contained in:
Mark McDowall
2024-07-23 15:52:44 -07:00
committed by Mark McDowall
parent 76650af9fd
commit d46f4b2154
85 changed files with 614 additions and 412 deletions
+13
View 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: boolean) {
scrollLock = locked;
}