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.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

View File

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