Page MenuHomePhabricator

When typing-to-select in a DropdownWidget, if the mouse is hovering over the list, the scroll effect sometimes causes mouse selection to happen unexpectedly
Closed, ResolvedPublic

Description

When typing-to-select in a DropdownWidget, if the mouse is hovering over the list, the scroll effect sometimes causes mouse selection to happen unexpectedly.

For example, here's a video of me trying to select the "de - Deutsch" option on Special:PageLanguage by typing "d", "e", "Enter" – which selects "co - corsu", which is where my mouse pointed.

Event Timeline

matmarex raised the priority of this task from to Needs Triage.
matmarex updated the task description. (Show Details)
matmarex added a project: OOUI.
matmarex subscribed.
matmarex triaged this task as Medium priority.
matmarex set Security to None.

Change 269157 had a related patch set uploaded (by Bartosz Dziewoński):
SelectWidget: Prevent mouse highlighting while typing-to-select

https://gerrit.wikimedia.org/r/269157

Test case: https://fiddle.jshell.net/xjgbxpxb/5/show/. On a closer look, Firefox has similar but slightly different issues. The problem doesn't occur on Internet Explorer 11 or Opera 12.

(Source: https://jsfiddle.net/xjgbxpxb/5/ – Chrome doesn't exhibit the problematic behavior when viewing this, presumably because the test case is shown inside an <iframe>.)

Change 269157 merged by jenkins-bot:
SelectWidget: Prevent mouse highlighting while typing-to-select

https://gerrit.wikimedia.org/r/269157