Replace unscroll class with overscroll-behavior: contain; #2322

This commit is contained in:
ccd0 2019-07-16 12:04:20 -07:00
parent 0aae929a3a
commit 25e91a1890
2 changed files with 1 additions and 5 deletions

View File

@ -69,7 +69,6 @@ Settings =
$.on dialog, 'click', Settings.close $.on dialog, 'click', Settings.close
$.on dialog.firstElementChild, 'click', (e) -> e.stopPropagation() $.on dialog.firstElementChild, 'click', (e) -> e.stopPropagation()
$.addClass d.body, 'unscroll'
$.add d.body, dialog $.add d.body, dialog
$.event 'OpenSettings', null, dialog $.event 'OpenSettings', null, dialog
@ -78,7 +77,6 @@ Settings =
return unless Settings.dialog return unless Settings.dialog
# Unfocus current field to trigger change event. # Unfocus current field to trigger change event.
d.activeElement?.blur() d.activeElement?.blur()
$.rmClass d.body, 'unscroll'
$.rm Settings.dialog $.rm Settings.dialog
delete Settings.dialog delete Settings.dialog

View File

@ -546,6 +546,7 @@ audio.controls-added {
position: relative; position: relative;
overflow: auto; overflow: auto;
padding-right: 5px; padding-right: 5px;
overscroll-behavior: contain;
} }
.sections-list { .sections-list {
-webkit-flex: 1; -webkit-flex: 1;
@ -711,9 +712,6 @@ div[data-checked="false"] > .suboption-list {
#fourchanx-settings table { #fourchanx-settings table {
margin: auto; margin: auto;
} }
.unscroll {
overflow: hidden;
}
/* Index */ /* Index */
:root.index-loading .navLinks:not(.json-index), :root.index-loading .navLinks:not(.json-index),