Jquery Directional Snap – Mr. Joel Kemp

I wrote this helper that allows you to join two particular sides between two objects. It allows for more granular snapping functionality than that of Jquery draggable’s snap modes

Goal: An object should snap to another object in a particular direction.


When would you use this?

Let’s say you have multiple canvas objects that are used to piece together a still image or video, you’ll want a piece not to snap to any other piece (using Jquery draggable’s outer, inner, or both snapModes) but to snap to a particular piece in a specific direction.

Hope it helps!