Drag and drop image from and to fixed position on fixed path
Posted
by
DMan
on Stack Overflow
See other posts from Stack Overflow
or by DMan
Published on 2012-12-03T17:00:56Z
Indexed on
2012/12/03
17:03 UTC
Read the original article
Hit count: 451
I am trying to allow the user to drag and drop and image from on position to another. The screen layout is as follows:
1 2 3
4 5 6
7 8 9
I want the user to grab image 2, 4, 6, or 8 and drag it to image 5. Upon dragging to image 5 I want to load up a fragment. The user can only drag the image in a straight line from it's current position to 5's position. ie image 2 and only drag down and only until it is overtop of image 5, image 4 can only drag right until overtop of 5, etc.
Any insight on how to do this is greatly appreciated.
Thanks, DMan
© Stack Overflow or respective owner