From c941418100fbefacf37028a04726424c1f78ee84 Mon Sep 17 00:00:00 2001 From: Andre D Date: Sat, 6 Jun 2015 19:09:01 -0400 Subject: [PATCH] Tweak speed --- static/js/dragresize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/dragresize.js b/static/js/dragresize.js index 50a43eb..b4f2b21 100644 --- a/static/js/dragresize.js +++ b/static/js/dragresize.js @@ -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' }) }