Skip to content

Commit

Permalink
Update lib/commons/dom/get-rect-stack.js
Browse files Browse the repository at this point in the history
Co-authored-by: Wilco Fiers <[email protected]>
  • Loading branch information
straker and WilcoFiers authored Aug 9, 2022
1 parent 54f5165 commit bca14b1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/commons/dom/get-rect-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,6 @@ export function getRectStack(grid, rect, recursed = false) {
const rectX = clientRect.left;
const rectY = clientRect.top;

if (gridCellNode.attr('id') === 'debugNode') {
console.log(JSON.stringify({
el: gridCellNode.actualNode.cloneNode(false).outerHTML,
y: y,
floorY: floorY,
'rectY': rectY,
height: clientRect.height,
'rectY+height': rectY + clientRect.height,
'floor(rectY+height)': floor(rectY + clientRect.height)
},null,2));
}

// perform an AABB (axis-aligned bounding box) collision check for the
// point inside the rect
// account for differences in how browsers handle floating point
Expand Down

0 comments on commit bca14b1

Please sign in to comment.