Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown keyboard nav position moves unexpectedly when scrolling into view #8745

Closed
1 task done
microbit-matt-hillsdon opened this issue Jan 23, 2025 · 0 comments · Fixed by #8749
Closed
1 task done
Assignees
Labels
issue: bug Describes why the code or behaviour is wrong

Comments

@microbit-matt-hillsdon
Copy link

microbit-matt-hillsdon commented Jan 23, 2025

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

dropdown-scroll-bug.mp4

Reproduction steps

  1. Start with the setup for Dropdown keyboard navigation doesn't scroll items into view #8724
  2. Open the variable dropdown with the mouse, hover over a menu item
  3. Leaving the mouse where it is, move down repeatedly via keyboard down
  4. Notice that when you reach the bottom and the next item is scrolled into view, the menu position unexpectedly moves back up to the item under the mouse

This seems to be because a mouse event is triggered by the scroll causing Blockly to think it should move to that menu item even though the mouse is not really in use.

Stack trace

Screenshots

No response

Browsers

No response

@microbit-matt-hillsdon microbit-matt-hillsdon added issue: bug Describes why the code or behaviour is wrong issue: triage Issues awaiting triage by a Blockly team member labels Jan 23, 2025
@cpcallen cpcallen removed the issue: triage Issues awaiting triage by a Blockly team member label Jan 27, 2025
@rachel-fenichel rachel-fenichel moved this to In Progress in Blockly Accessibility Feb 4, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Blockly Accessibility Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Describes why the code or behaviour is wrong
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants