From 623991fb8d5584fcc01818fd3e3e114824333f3a Mon Sep 17 00:00:00 2001 From: Yan Date: Thu, 4 Jan 2024 13:35:15 +0300 Subject: [PATCH] Ignore swipes while in gallery --- src/features/sidebar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/sidebar/index.ts b/src/features/sidebar/index.ts index 8b09cf8..e57d31d 100644 --- a/src/features/sidebar/index.ts +++ b/src/features/sidebar/index.ts @@ -20,7 +20,7 @@ function setEventListener(type: string, listener: (event: Event) => void) { } const swipeIgnoreTags = ["PRE", "CODE"] -const swipeIgnoreMatches = ["#sr-header-area"] +const swipeIgnoreMatches = ["#sr-header-area", ".lg-container"] const toggleAbles = [ {name: "Disable random NSFW", settingId: "disableNSFW", className: "ol_noRandNsfw"}, {name: "Disable random", settingId: "disableRandom", className: "ol_noRandom"},