From 64caf4a2fa9dcefc4cc2074f41585a6aacd04a83 Mon Sep 17 00:00:00 2001 From: Tim Stallard Date: Tue, 21 Feb 2017 11:03:57 +0000 Subject: [PATCH] Oops --- client/src/pageInteraction/dragDrop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pageInteraction/dragDrop.js b/client/src/pageInteraction/dragDrop.js index 9083031..2cc4117 100644 --- a/client/src/pageInteraction/dragDrop.js +++ b/client/src/pageInteraction/dragDrop.js @@ -25,8 +25,8 @@ $("#blocks").on("mousedown", ".block>.main,.block>.inputs", function(event){ }, dragging: true, offset: { - x: event.offsetX, - y: event.offsetY + x: event.pageX - $(this).parent().offset().left, + y: event.pageY - $(this).parent().offset().top }, type: $(this).parent().data("type") }