selfOrParentIsScrollable = (element, stopElement) => {
  let parent = element
  while (parent && parent !== stopElement) {
    if (isScrollable(parent)) {
      return true
    }
    parent = parent.parentElement
  }
  return false
}
@param {HTMLElement} element
@param {HTMLElement} stopElement
@returns {boolean}