Checks if element is on edge of scroll container
Vertical scroll: checks top/bottom edge Horizontal scroll: checks left/right edge