Fixed stop-scroll functionality.
Now it scrolls to the play position, which may not be zero.
This commit is contained in:
parent
691c5eee90
commit
12365aed59
|
@ -86,9 +86,6 @@ class Arranger : public fltk::Widget {
|
|||
int over_rhandle(seqpat* s);
|
||||
int over_lhandle(seqpat* s);
|
||||
|
||||
int tick2xpix(int tick);
|
||||
int xpix2tick(int xpix);
|
||||
int quantize(int xpix);
|
||||
|
||||
int delete_flag;
|
||||
|
||||
|
@ -158,6 +155,11 @@ class Arranger : public fltk::Widget {
|
|||
|
||||
void scrollTo(int X, int Y);
|
||||
|
||||
|
||||
int tick2xpix(int tick);
|
||||
int xpix2tick(int xpix);
|
||||
int quantize(int xpix);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -519,7 +519,7 @@ void press_stop(){
|
|||
|
||||
ui->metronome->update(left);
|
||||
|
||||
ui->arranger->scrollTo(0,ui->arranger->scrolly);
|
||||
ui->arranger->scrollTo(ui->arranger->tick2xpix(left),ui->arranger->scrolly);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue