Skip to content

Commit

Permalink
fix(horizontalOverlapEndIndex) typo in variable name (visjs#1610)
Browse files Browse the repository at this point in the history
Co-authored-by: catherine_baird <catherine.baird@brivo.com>
  • Loading branch information
ctbaird and catherine_baird authored Jun 19, 2023
1 parent ea35039 commit ba9c546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline/Stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function performStacking(items, margins, compareTimes, shouldStack, shouldOthers
horizontalOverlapEndIndex = findIndexFrom(itemsAlreadyPositioned, i => itemEnd < getItemStart(i) - EPSILON, Math.max(horizontalOverlapStartIndex, horizontalOverlapEndIndex));
}
if(previousEnd !== null && previousEnd - EPSILON > itemEnd) {
horizontalOverlapEndIndex = findLastIndexBetween(itemsAlreadyPositioned, i => itemEnd + EPSILON >= getItemStart(i), horizontalOverlapStartIndex, horizontalOVerlapEndIndex) + 1;
horizontalOverlapEndIndex = findLastIndexBetween(itemsAlreadyPositioned, i => itemEnd + EPSILON >= getItemStart(i), horizontalOverlapStartIndex, horizontalOverlapEndIndex) + 1;
}

// Sort by vertical position so we don't have to reconsider past items if we move an item
Expand Down

0 comments on commit ba9c546

Please sign in to comment.