Hello,
I have a panel containing multiple instances of the same item.
I'm trying to achieve the following behaviour:
- when the user taps on an item and drags it horizontally, all the other items are moved horizontally with him.
- when the user taps on an item and drags it vertically, only that single item is moved vertically.
Something similar could be achieved attaching to each item two UIDragObject.
The first one is for horizontally dragging, therefore its dragging target is the panel containing all the items and the movement is locked on the horizontal axis.
The second one is for vertically dragging, therefore its dragging target is the item itself and the movement is locked on the vertical axis.
This solution seems quite dirty to me, and also has the side effect that it is possible to move the item horizontally and vertically at the same time (a.k.a. diagonal movement

) while I would like that the item is movable on one axis at time.
Any idea ?
Thanks
Antonio