Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Drag and Drop with snapping

$
0
0

I'm trying to create a drag and drop map where the country snaps into place on top of it's target. I have loaded all necessary libraries and the dragging works fine. I just need it to snap into it's place. Here's my code...

 

 

          sym.$('Peru2').draggable();

 

          sym.$('Peru_target').droppable({drop: function() {sym.getSymbol("Peru2").play();}});

 

And here's the example...

 

http://jzdconnect.com/map_drag/map.html

 

 

HELP!


Viewing all articles
Browse latest Browse all 9897

Trending Articles