Skip to content

Commit

Permalink
selected slide logic fix on cue reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
RedyAu committed Nov 24, 2024
1 parent 4e30bd5 commit d454299
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ui/cue/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ class _CuePageState extends ConsumerState<CuePage> {
reorderCueSlides(cue.requireValue, from, to);
if (selectedSlideOrIsAdding == from) {
selectedSlideOrIsAdding = to > from ? to - 1 : to;
} else if (selectedSlideOrIsAdding != null &&
from <= selectedSlideOrIsAdding! &&
to > selectedSlideOrIsAdding!) {
selectedSlideOrIsAdding = selectedSlideOrIsAdding! - 1;
}
});
},
Expand Down

0 comments on commit d454299

Please sign in to comment.