From ab96cb1452d2ebcac776fe21ef221913bc1b49b9 Mon Sep 17 00:00:00 2001 From: Alex Reardon Date: Fri, 15 Sep 2017 22:55:12 +1000 Subject: [PATCH] what droppable you are over is based on center position of draggable (#93) Base what droppable you are over is based on center position of draggable and not the mouse selection point --- src/state/reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/reducer.js b/src/state/reducer.js index 24fc304779..303e0a66cd 100644 --- a/src/state/reducer.js +++ b/src/state/reducer.js @@ -125,7 +125,7 @@ const move = ({ }; const newImpact: DragImpact = (impact || getDragImpact({ - page: page.selection, + page: page.center, withinDroppable, draggableId: current.id, draggables: state.dimension.draggable,