Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
bug fixes and button name change
Browse files Browse the repository at this point in the history
  • Loading branch information
StTronn committed Jan 16, 2021
1 parent 6e7d35b commit 2bf2a09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/generate-images.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const moveLeft = (index) => {
};

export const moveRight = (index) => {
if (index + 1 > outputImages.length) return outputImages;
if (index + 1 === outputImages.length) return outputImages;
outputImages = arrayMove(outputImages, index, index + 1);
renderOutput(outputImages);
};
Expand Down
4 changes: 2 additions & 2 deletions js/utils/generate-utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ function renderOutput(outputImages) {
class="button move-left"
data-index="${index}"
>
L
Move Left
</button>
<button
class="button move-right"
data-index="${index}"
>
R
Move Right
</button>
</div>
</div>
Expand Down

0 comments on commit 2bf2a09

Please sign in to comment.