Added horizontal scroll position awareness.