Skip to content

Conversation

@woodward54
Copy link

@woodward54 woodward54 commented Dec 2, 2025

Why

Fixed a bug in the Select component's box selection feature where prepareRay was using offsetX/offsetY which fails when the pointer is over UI elements outside the canvas.

Bug:
https://github.com/user-attachments/assets/484b5a04-cd4f-42af-a157-8ad0b5a33b52

What

  • Changed coordinate calculation from offsetX/offsetY to clientX/clientY relative to the canvas bounding rect, ensuring correct selection even when the pointer is over UI elements
  • Added TypeScript typing to function parameters

Fixed:
https://github.com/user-attachments/assets/b891366a-527c-4574-9fe9-5e32a96d6fe4

Checklist

  • Ready to be merged

@vercel
Copy link

vercel bot commented Dec 2, 2025

@woodward54 is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 2, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@DennisSmolek DennisSmolek added the v11 For v11 related tasks label Jan 12, 2026
@DennisSmolek DennisSmolek self-assigned this Jan 12, 2026
@DennisSmolek DennisSmolek added the bug Something isn't working label Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working v11 For v11 related tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants