Problem: After I move a group of objects, their event listeners are still at the objects’ old locations.
-
Create ObjA at say (50, 100), ObjB at (100, 150), ObjC at (120, 120).
-
Add them to a group: ObjGroup.
-
Add event listeners for the ObjA, ObjB, and ObjC (before, or after adding to the group).
-
Click on any of the objects. Events are registers.
-
Move the group by 50 (as ObjGroup.x = ObjGroup.x + 50). All images move to the right by 50.
-
Click any of the objects. No events regsitered.
-
Click where the objects used to be, and the events are registered.
Anyway to get the event listeners to move along with the group?
If I move each object individually, the event listeners move also.