Preventing jank on focused overflow-causing elements

Making sure the focused element doesn’t trigger janky scroll. Read full article: Preventing jank on focused overflow-causing elements .