-
-
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
general selection logic - difficulties #3004
Comments
I was playing with this problem yesterday. It should happen with anyshape. Our selection logic select the topmost object when you click, regardless of what you selected before ( execption made for active group that is checked before ). I was checking the code and there is some duplicate logic here and there. You can see in the PR #2997 i changed something. But i think that active object should be checked on top of the other things. before or after activeGroup. Are you sure that this was not happening before? I remember seeing this since long. |
In fact the problem is more generic and occurs with any type of element. The problem occurs with individual elements and element groups whenever there is an overlap |
Actually, if you say it was happening before then maybe I hadn't encountered it before, so no I'm not sure anymore. |
The lines are probably running to 0,0 and could be a problem of your hardware. i cannot make them happen. For the selection logic as of now it is like that: on click: is there any activegroup and the active group contains point clicked? No, there is no active group or we clicked outside it, so run trought all elements and return the topmost that contains point ( or makes happy other conditions with trasparencies, controls... ). There is no check for the activeObject that has been selected. And i think there should be. |
tipically when you have on canvas 70 elements you have difficulties selecting whatever is on the back, you have to move away top objects so that they not interfere with click. |
I'm using Chrome 50.0.2661.102. I can imagine that testing all the user interaction can be big pain, I'd be very scare to make big regressions my self! |
Any news? |
@DanieleSassoli, any particular idea here? I added a key + click combination to retrieve the last rendered object during click if someone should find it usefull. |
What is the combination of keys to use? |
either control or alt. Please check file canvas.class.js in current master for default value of lastRenderedKey. |
Hi,
If I add 2 SVG shapes to the kitchensink sample and overlay them I'm unable to use the controls of the bottom one because the top one gets automatically selected, this didn't happen before the last update.
Any clue of what this could be?
The text was updated successfully, but these errors were encountered: