Don't scroll up the dropdown if unnecessary

Try this: scroll down in the dropdown then press UP repeatedly.

Before fix : dropdown scrolls up even if unnecessary, e.g. the new active option is entirely visible in the dropdown.
After : dropdown scrolls up only if the target option is out of the visible part of the dropdown.