Node.js based forum software built for the modern web
fix so that mouse is always on the handle
psychobunnybc9d7f2922a5
diff --git a/public/src/modules/composer/resize.js b/public/src/modules/composer/resize.jsindex 6ba01f944c..6267228761 100644--- a/public/src/modules/composer/resize.js+++ b/public/src/modules/composer/resize.js@@ -59,9 +59,9 @@ define('composer/resize', function() {resize.handleResize = function(postContainer) {function resizeStart(e) {var resizeRect = resizeEl[0].getBoundingClientRect(),- resizeCenterY = resizeRect.top + (resizeRect.height/2);-- resizeOffset = resizeCenterY - e.clientY;+ resizeCenterY = resizeRect.top + resizeRect.height;++ resizeOffset = (resizeCenterY - e.clientY) / 2;resizeActive = true;resizeDown = e.clientY;@@ -78,7 +78,7 @@ define('composer/resize', function() {$(window).off('mouseup', resizeStop);$('body').off('touchmove', resizeTouchAction);- var position = (e.clientY + resizeOffset),+ var position = (e.clientY - resizeOffset),newHeight = $(window).height() - position,windowHeight = $(window).height();@@ -113,7 +113,7 @@ define('composer/resize', function() {function resizeAction(e) {if (resizeActive) {- var position = (e.clientY + resizeOffset),+ var position = (e.clientY - resizeOffset),newHeight = $(window).height() - position;doResize(postContainer, newHeight / $(window).height());