Skip to content

Commit

Permalink
Don't check vertical collisions because don't want to share lanes wit…
Browse files Browse the repository at this point in the history
…h previous items
  • Loading branch information
FranCarrascosaMS committed Jul 1, 2023
1 parent 05ddfdb commit 8c836b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/timeline/Stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,11 @@ function performStacking(items, margins, compareTimes, shouldStack, shouldOthers
// Keep moving the item down until it stops colliding with any other items
for(let i2 = 0; i2 < horizontallyCollidingItems.length; i2++) {
const otherItem = horizontallyCollidingItems[i2];

if(checkVerticalSpatialCollision(item, otherItem, margins)) {

// We won't check vertical collisions because don't want to share lanes with previous items.
//if(checkVerticalSpatialCollision(item, otherItem, margins)) {
item.top = otherItem.top + otherItem.height + margins.vertical;
}
//}
}

if(shouldOthersStack(item)) {
Expand Down

0 comments on commit 8c836b5

Please sign in to comment.