✌️
This commit is contained in:
parent
edb36d73f8
commit
8eaf1423c1
1 changed files with 1 additions and 2 deletions
|
@ -6,8 +6,7 @@ export function getScrollContainer(el: HTMLElement | null): HTMLElement | null {
|
||||||
if (
|
if (
|
||||||
// xとyを個別に指定している場合、`hidden scroll`みたいな値になる
|
// xとyを個別に指定している場合、`hidden scroll`みたいな値になる
|
||||||
overflow.endsWith('scroll') ||
|
overflow.endsWith('scroll') ||
|
||||||
overflow.endsWith('auto') ||
|
overflow.endsWith('auto')
|
||||||
el.scrollHeight > el.clientHeight
|
|
||||||
) {
|
) {
|
||||||
return el;
|
return el;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue