tinybigideas/jGravity — pull request #2 by mathlete12 (2013-05-28 10:21:23+00:00)
Title: Drag prevents default click event on elements

Hey man, your plugin is dope. Added it to a profile website where a bunch of divs fall around and each is a link to something, like my facebook, linked in, blog, youtube, etc. Just couldn't get links to not navigate if the user drags it, so tweaked your stuff. Lemme know whether it's any use or shitty code or what.

Luke

CL:
-Shoved settings into a global object jGravity on window..
-A mouse shift of over 10px in either vertical or horizontal counts as a
drag
-Sets a dragging variable to true when dragging, so default click can be
prevented.