Updated for horizontal scroll.