The issue is when the pin behavior is run. The basic loop is:
pre tick behaviors -> events -> post tick behaviors -> draw -> repeat
"drag n drop" is "pre tick" and "pin" is "post tick" so the pinned object's positions won't be updated from the dragging object until after the event sheet.
One solution is to keep track of the change of position of the dragging object and adding that to the position when you wrap.
https://dl.dropboxusercontent.com/u/542 ... g_pin.capx
Another is to not use the pin behavior and do it in events. If anything it gives more control.
https://dl.dropboxusercontent.com/u/542 ... _drag.capx
Edit:
The for eaches and events 4,5,7 & 8 are for the visual wrapping of tiles.