Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon committed Jun 12, 2018
1 parent 8275cc7 commit bdf35bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/state/bulk-replace/with-critical-replacement.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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 = {
Expand Down

0 comments on commit bdf35bc

Please sign in to comment.