You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to detect the object clicked, even if the object is in a group.
I use the "subTargetCheck" propertie and it work like a charm if my group is "selectable=false", if set it to selectable=true. it always return me the first clicked object and seems to be locked on this value.
Here is the codepen, i show in the console the color of the clicked rect object.
But if you change the value "selectable=true" line 20, you got the rect value on the first click, after you need to deselect the shape and click on the other rect to get the value.
Is this normal ? an i clear enough ?
Thank you for your help.
PS : I was thinking the findtarget() with the skipGroup paramter could do the samething but i always got the object "group" as finded target. Am i a bit lost on the use of this method, can you enlighten me ?
Thank you.
The text was updated successfully, but these errors were encountered:
ok, fabric uses a shortcut to return earlier in case of activeObject click.
So you gain some bullshit improvement in speed and we loose a feature.
I guess i'm fixing this.
Hi,
I want to detect the object clicked, even if the object is in a group.
I use the "subTargetCheck" propertie and it work like a charm if my group is "selectable=false", if set it to selectable=true. it always return me the first clicked object and seems to be locked on this value.
Here is the codepen, i show in the console the color of the clicked rect object.
But if you change the value "selectable=true" line 20, you got the rect value on the first click, after you need to deselect the shape and click on the other rect to get the value.
http://codepen.io/anon/pen/zNyYEE
Is this normal ? an i clear enough ?
Thank you for your help.
PS : I was thinking the findtarget() with the skipGroup paramter could do the samething but i always got the object "group" as finded target. Am i a bit lost on the use of this method, can you enlighten me ?
Thank you.
The text was updated successfully, but these errors were encountered: