Repository navigation
The arrow keys keep the hover while the list scrolls under the pointer - #156
Merged
Merged
Conversation
When the part list scrolls under a still pointer, the browser fires mouseenter and mouseleave on the rows that pass under it. Since the last used input owns the hover, these ended the arrow-key walk on every press. A mouse event now takes the hover from the keys only if the pointer is at another position than at the key press. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCbPYsA5LYNX8HZaGGZCpK
Contributor
|
Owner
Author
|
Review round 1: no findings. FYI, not fixing: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the review of
6279c5don #155.Closes #155
With the pointer resting over the part list, the arrow keys no longer walked the list. When the list scrolls, the browser fires
mouseenter/mouseleaveon the rows that pass under the still pointer. These counted as mouse use, dropped the focus row, and the next press started again from the selected row.Change
web/app.js: amousemovelistener stores the pointer position.navigateListcallstakeHoverByKeys, which records the position at the key press. While the keys own the hover, a mouse enter or leave at that same position is ignored. An event at another position hands the hover to the mouse, as before.hoverFootprint,hoverNetandhoverClear. Clicks, Enter and Escape callhoverClear()with no event, so they still end the walk.Checks
npm run test:api: all OK.🤖 Generated with Claude Code
https://claude.ai/code/session_01UCbPYsA5LYNX8HZaGGZCpK