GUI: finally implement "don't scroll when moving c
ursor" setting
This commit is contained in:
parent
2e8634626d
commit
d79e5d77a7
3 changed files with 7 additions and 5 deletions
|
|
@ -193,7 +193,9 @@ void FurnaceGUI::moveCursor(int x, int y, bool select) {
|
|||
selStart=cursor;
|
||||
}
|
||||
selEnd=cursor;
|
||||
updateScroll(cursor.y);
|
||||
if (!settings.cursorMoveNoScroll) {
|
||||
updateScroll(cursor.y);
|
||||
}
|
||||
e->setMidiBaseChan(cursor.xCoarse);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2350,7 +2350,9 @@ bool FurnaceGUI::loop() {
|
|||
demandScrollX=true;
|
||||
if (cursor.xCoarse==selStart.xCoarse && cursor.xFine==selStart.xFine && cursor.y==selStart.y &&
|
||||
cursor.xCoarse==selEnd.xCoarse && cursor.xFine==selEnd.xFine && cursor.y==selEnd.y) {
|
||||
updateScroll(cursor.y);
|
||||
if (!settings.cursorMoveNoScroll) {
|
||||
updateScroll(cursor.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue