I've written a framerjs script that uses click events on a draggable layer. I've noticed that the click events occur when the user does a drag and releases the cursor. Ideally I'd like a way for the release of a drag to not be detected as a click (i.e. clicks only occur when there is no drag event). I expect I'm just doing something wrong. Any advice?