This commit is contained in:
tamaina 2022-02-02 00:47:57 +09:00
parent edb36d73f8
commit 8eaf1423c1

View file

@ -6,8 +6,7 @@ export function getScrollContainer(el: HTMLElement | null): HTMLElement | null {
if (
// xとyを個別に指定している場合、`hidden scroll`みたいな値になる
overflow.endsWith('scroll') ||
overflow.endsWith('auto') ||
el.scrollHeight > el.clientHeight
overflow.endsWith('auto')
) {
return el;
} else {