Skip to content

Clear stale Shift state on canvas mouse input - #2094

Open
rayw-lab wants to merge 1 commit into
xeokit:masterfrom
rayw-lab:codex/clear-stale-shift
Open

rayw-lab wants to merge 1 commit into
xeokit:masterfrom
rayw-lab:codex/clear-stale-shift

Conversation

@rayw-lab

Copy link
Copy Markdown

Summary

A context menu opened outside the canvas can consume the Shift keyup. The next canvas interaction then sees Shift as held and can pan the camera when the user meant to rotate it.

Use the mouse event's modifier flag to clear stale Shift state when the pointer enters or presses down on the canvas. Update both public Input flags and the camera handler's own key state before either one is read.

Verification

All three Playwright cases pass. Two check the listener-visible Input state on canvas entry and mouse down. The third uses Chromium mouse drags through the production camera handler to check that holding Shift pans the camera and that the first drag after a swallowed keyup rotates it.

Fixes #1980.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-28T04:19:47.081775Z
We couldn’t complete this review. Comment @codex review to try again.
9b7f227 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native shift + right click on non-canvas makes shift stuck for the viewer

1 participant