Update left property while dragging
<p>I want to update the <code>left</code> property of a <code>ul</code> while dragging, but it just jumps to -1980 as soon as I start dragging.</p>

<pre><code>$('#draggable').on('drag', function() {

    var start = 0;
    var end = 2000;

    while (start &lt;= end) {
        $('ul').css('left', -start);
        start+=20;
    }

});
</code></pre>

<p><a href="http://jsfiddle.net/EKp2H/" rel="nofollow">FIDDLE</a></p>
