GUI: fix expand selection upwards

This commit is contained in:
tildearrow 2023-08-22 20:23:21 -05:00
parent cc8c79375d
commit 577d6fd4d4
2 changed files with 23 additions and 4 deletions

View file

@ -374,7 +374,9 @@ void FurnaceGUI::moveCursorNextChannel(bool overflow) {
}
void FurnaceGUI::moveCursorTop(bool select) {
finishSelection();
if (!select) {
finishSelection();
}
curNibble=false;
if (cursor.y==0) {
DETERMINE_FIRST;
@ -384,16 +386,18 @@ void FurnaceGUI::moveCursorTop(bool select) {
} else {
cursor.y=0;
}
selStart=cursor;
if (!select) {
selEnd=cursor;
selStart=cursor;
}
selEnd=cursor;
e->setMidiBaseChan(cursor.xCoarse);
updateScroll(cursor.y);
}
void FurnaceGUI::moveCursorBottom(bool select) {
finishSelection();
if (!select) {
finishSelection();
}
curNibble=false;
if (cursor.y==e->curSubSong->patLen-1) {
DETERMINE_LAST;