Better handling of tab scrolling