Skip to content

Commit

Permalink
fix(project): disable TileDock animation when not multipage
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Jun 23, 2021
1 parent 3bebd65 commit 85acb3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TileDock/TileDock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const TileDock = <T extends unknown>({
return sliceItems<T>(items, isMultiPage, index, tilesToShow, cycleMode);
}, [items, isMultiPage, index, tilesToShow, cycleMode]);

const transitionBasis: string = `transform ${animated ? transitionTime : '0s'} ease`;
const transitionBasis: string = isMultiPage ? `transform ${animated ? transitionTime : '0s'} ease` : '';

const needControls: boolean = showControls && isMultiPage;
const showLeftControl: boolean = needControls && !(cycleMode === 'stop' && index === 0);
Expand Down

0 comments on commit 85acb3a

Please sign in to comment.