implemented proximity snapping on y-axis, for main document scrolling