GUI: finally implement "don't scroll when moving c
ursor" setting
This commit is contained in:
parent
2e8634626d
commit
d79e5d77a7
2
TODO.md
2
TODO.md
|
@ -29,7 +29,6 @@
|
|||
- try to find out why does VSlider not accept keyboard input
|
||||
- finish lock layout
|
||||
- if macros have release, note off should release them
|
||||
- add "don't scroll on cursor movement" option
|
||||
- add ability to select entire row when clicking on row number
|
||||
- store edit/followOrders/followPattern state in config
|
||||
- add ability to select a column by double clicking
|
||||
|
@ -39,4 +38,3 @@
|
|||
- Apply button in settings
|
||||
- better FM chip names (number and codename)
|
||||
- find and replace
|
||||
- precise panning effects (80xx linear, 81xx/82xx per-channel)
|
||||
|
|
|
@ -193,7 +193,9 @@ void FurnaceGUI::moveCursor(int x, int y, bool select) {
|
|||
selStart=cursor;
|
||||
}
|
||||
selEnd=cursor;
|
||||
if (!settings.cursorMoveNoScroll) {
|
||||
updateScroll(cursor.y);
|
||||
}
|
||||
e->setMidiBaseChan(cursor.xCoarse);
|
||||
}
|
||||
|
||||
|
|
|
@ -2350,9 +2350,11 @@ 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) {
|
||||
if (!settings.cursorMoveNoScroll) {
|
||||
updateScroll(cursor.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SDL_MOUSEBUTTONDOWN:
|
||||
aboutOpen=false;
|
||||
|
|
Loading…
Reference in New Issue