From bdf35bca4ea1d15989ac441fb74d677cf736223a Mon Sep 17 00:00:00 2001 From: Alex Reardon Date: Tue, 12 Jun 2018 17:04:06 +1000 Subject: [PATCH] logging --- src/state/bulk-replace/with-critical-replacement.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/state/bulk-replace/with-critical-replacement.js b/src/state/bulk-replace/with-critical-replacement.js index 69b21ddbc4..6ef84889fd 100644 --- a/src/state/bulk-replace/with-critical-replacement.js +++ b/src/state/bulk-replace/with-critical-replacement.js @@ -78,9 +78,12 @@ export default ({ return { client, page }; })(); + console.group('critical replacement'); console.log('NEW START INDEX', critical.draggable.index); - console.warn('bulk replace initial page center', initial.page.borderBoxCenter); - console.warn('bulk replace current page center', current.page.borderBoxCenter); + console.log('PRE-UPDATE: initial page center', state.initial.page.borderBoxCenter) + console.log('PRE-UPDATE: current page center', state.current.page.borderBoxCenter) + console.warn('POST-UPDATE: initial page center', initial.page.borderBoxCenter); + console.warn('POST-UPDATE: current page center', current.page.borderBoxCenter); console.log('home impact', getHomeImpact(critical, dimensions)); const impact: DragImpact = getDragImpact({ @@ -95,6 +98,8 @@ export default ({ console.log('NEW IMPACT INDEX', impact.destination ? impact.destination.index : null); console.log('isBeyondStartPosition', impact.movement.isBeyondStartPosition); console.log('displaced', impact.movement.displaced.map(entry => entry.draggableId)); + console.groupEnd(); + // stripping out any animations const forcedNoAnimations: DragImpact = {