-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Bug]: When holding Shift to enable multi-selection, mouse:over and mouse:out do not behave as expected. #10337
Comments
I kind of agree is a bug, i could change idea when looking at the code to fix it. |
One of the reason why this could not be a bug is that you are hovering the active selection. |
I made a minimal change to address this issue, ensuring it(mouse:over) will always return only one element to guarantee that the selected element being pressed and the element triggering the active border are the same. |
I have seen that. I ll check it asap. |
I have been staring at this issue hours, no joking. What is the role of findTarget? findTarget is finding the target you are over with the cursor, exception made for that strange functionality of altSelectionKey that was made to avoid loosing the ability to reach the active object when preserveObjectStacking is true. The logic of finding the object behind the activeSelection is already available inside I would rather run that logic every time there is an active selection, with or without selection key pressed, and return the information in the event, then the developer uses it as it may prefer. Let me make a counter proposal pr |
this is an alternate solution |
CheckList
Version
6.0.2
In What environments are you experiencing the problem?
No response
Node Version (if applicable)
None
Link To Reproduction
https://codepen.io/zhe-he-the-vuer/pen/ByBKXQN?editors=0010
Steps To Reproduce
Expected Behavior
When the mouse enters the right half of A, hold Shift to trigger A's mouse:over. Release Shift to trigger A's mouse:out
2024-12-12.18.27.43.mov
Actual Behavior
When the mouse enters A's right area, holding Shift allows multi-selection of A but fails to trigger A's mouse:over event, which is a clear bug.
2024-12-12.18.14.27.mov
Error Message & Stack Trace
No response
The text was updated successfully, but these errors were encountered: