mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
GUI: scroll to cursor pos on click
This commit is contained in:
parent
c41435353a
commit
be4ad87a3a
1 changed files with 7 additions and 1 deletions
|
@ -2145,7 +2145,13 @@ bool FurnaceGUI::loop() {
|
||||||
macroDragActive=false;
|
macroDragActive=false;
|
||||||
macroLoopDragActive=false;
|
macroLoopDragActive=false;
|
||||||
waveDragActive=false;
|
waveDragActive=false;
|
||||||
if (selecting) finishSelection();
|
if (selecting) {
|
||||||
|
finishSelection();
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_MOUSEBUTTONDOWN:
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
aboutOpen=false;
|
aboutOpen=false;
|
||||||
|
|
Loading…
Reference in a new issue