diff --git a/src/logic-scenes/board/card-board.gd b/src/logic-scenes/board/card-board.gd index c7a9e7e..712fc8b 100644 --- a/src/logic-scenes/board/card-board.gd +++ b/src/logic-scenes/board/card-board.gd @@ -92,7 +92,8 @@ var mementos_collected: int = 0: elif new_id < 0: current_dropzone_id = dropzone.get_child_count() - 1 else: current_dropzone_id = new_id if current_context == ASSIGN and not focus_stickies: - while not dropzone.get_child(current_dropzone_id) is Card: current_dropzone_id = (current_dropzone_id + 1) % dropzone.get_child_count() + while not dropzone.get_child(current_dropzone_id) is Card: + current_dropzone_id = (current_dropzone_id + (1 if not new_id == -1 else -1)) % dropzone.get_child_count() dropzone.get_child(current_dropzone_id).preview_sticky_note(currently_active_node) elif not focus_stickies: diff --git a/src/logic-scenes/board/empty_sticky_note_panel.gd b/src/logic-scenes/board/empty_sticky_note_panel.gd index 31b364d..81d4fa7 100644 --- a/src/logic-scenes/board/empty_sticky_note_panel.gd +++ b/src/logic-scenes/board/empty_sticky_note_panel.gd @@ -71,6 +71,7 @@ func reclaim_sticky_note() -> bool: attached_sticky_note.on_board = false attached_sticky_note.tween_transform_to(Transform2D(0, get_screen_position() + ancor_position)) await attached_sticky_note.transform_tween_finished + await get_tree().process_frame attached_sticky_note.reparent(self) attached_sticky_note.attached_to = self attached_sticky_note.owner = self.owner