I made a dynamic component for a ‘venetial blind’ (I hope this is the correct translation in English), made by two frame bars top and bottom, and a variable number of adjustable horizontal plates, copies of one original element.
I want to have a dual behaviour when clicking:
- rotate the elements of some degrees (i.e. 60) with one click
- raise or lower the elements pack with another click.
I did it separately and the two behaviours are correct.
The problem comes from where to click to select which animation must be performed.
If I insert the onClick event at model level I can only have one of the two animations.
Would be nice to use a single action at model level maybe distinguishing with a left / right button click.
I decided to apply the Raise/Lower event clicking on the top frame bar and this is ok.
Now I tried to delegate the second animation (turn/unturn) clicking on any of the elements. since this should be more intuitive, but actually only the clicked single element turns
Is there any way to extend (propagate) the click to all the elements copies?