Prototype scrolling with overflow behavior