Skip to content

Commit

Permalink
🐛 fix(app): adjust bring to front layer logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdesque committed Feb 18, 2024
1 parent f543534 commit 57478ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ const useStore = create<GlamState>()(

if (currentIndex !== -1) {
const targetIndex = moveForward
? currentIndex - 1
: currentIndex + 1;
? currentIndex + 1
: currentIndex - 1;

if (targetIndex >= 0 && targetIndex < state.canvasList.length) {
const updatedCanvasList = [...state.canvasList];
Expand Down

0 comments on commit 57478ac

Please sign in to comment.