Latching algorithm in findEnclosingOverflowScroll is broken