Added debounced scrolling to improve performance