How to differentiate between click and drag/drop event?
<p>I have a problem with element which is both draggable and also has a click event.</p>

<pre><code>$('.drag').mousedown(function() {
    //...
});

$('.class').click(function() {
    //...
)};

&lt;div class="drag class"&gt;&lt;/div&gt;
</code></pre>

<p>When I drag and drop the element, the click event gets fired, too. How to prevent that?</p>
