fix: fixed select behaving erratically when mouse goes over an html element #2581
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.
Why
Fixed a bug in the
Selectcomponent's box selection feature whereprepareRaywas usingoffsetX/offsetYwhich fails when the pointer is over UI elements outside the canvas.Bug:
https://github.com/user-attachments/assets/484b5a04-cd4f-42af-a157-8ad0b5a33b52
What
offsetX/offsetYtoclientX/clientYrelative to the canvas bounding rect, ensuring correct selection even when the pointer is over UI elementsFixed:
https://github.com/user-attachments/assets/b891366a-527c-4574-9fe9-5e32a96d6fe4
Checklist