From 25e91a18905c48290d1348a3d81d3445e1f8f3eb Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 16 Jul 2019 12:04:20 -0700 Subject: [PATCH] Replace `unscroll` class with `overscroll-behavior: contain;` #2322 --- src/General/Settings.coffee | 2 -- src/css/style.css | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index 64883fd98..bd639ab02 100644 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -69,7 +69,6 @@ Settings = $.on dialog, 'click', Settings.close $.on dialog.firstElementChild, 'click', (e) -> e.stopPropagation() - $.addClass d.body, 'unscroll' $.add d.body, dialog $.event 'OpenSettings', null, dialog @@ -78,7 +77,6 @@ Settings = return unless Settings.dialog # Unfocus current field to trigger change event. d.activeElement?.blur() - $.rmClass d.body, 'unscroll' $.rm Settings.dialog delete Settings.dialog diff --git a/src/css/style.css b/src/css/style.css index c8896d6a2..5f80a8d84 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -546,6 +546,7 @@ audio.controls-added { position: relative; overflow: auto; padding-right: 5px; + overscroll-behavior: contain; } .sections-list { -webkit-flex: 1; @@ -711,9 +712,6 @@ div[data-checked="false"] > .suboption-list { #fourchanx-settings table { margin: auto; } -.unscroll { - overflow: hidden; -} /* Index */ :root.index-loading .navLinks:not(.json-index),