Added debounced scroll handling