Checks whether an element has vertical overflow.
Element to inspect.
true when scrollHeight exceeds clientHeight.
true
scrollHeight
clientHeight
hasScrollY(el); // true when el.scrollHeight > el.clientHeight Copy
hasScrollY(el); // true when el.scrollHeight > el.clientHeight
Checks whether an element has vertical overflow.