Added bounds for scrolling and dragging