autoscroll after handling all events