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),