Tweak speed

This commit is contained in:
Andre D 2015-06-06 19:09:01 -04:00
parent 95abc5549a
commit c941418100

View file

@ -69,9 +69,9 @@ $(function () {
dragging.addClass('dragged')
if (Math.abs(newx) > Math.abs(newy)) {
dragging.css({ 'width': Math.min(maxw, Math.max(width + (width * (.01 * newx)), minw)) + 'px', 'height': 'auto' })
dragging.css({ 'width': Math.min(maxw, Math.max(width + (width * (.0025 * newx)), minw)) + 'px', 'height': 'auto' })
} else {
dragging.css({ 'height': Math.min(maxh, Math.max(height + (height * (.01 * newy)), minh)) + 'px', 'width': 'auto' })
dragging.css({ 'height': Math.min(maxh, Math.max(height + (height * (.0025 * newy)), minh)) + 'px', 'width': 'auto' })
}