InfoScreen: fix mouse selection

This commit is contained in:
Youngjae Lee 2021-01-14 12:15:59 +09:00 committed by BenBE
parent 92fb69f5a0
commit fd45845829
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ void InfoScreen_run(InfoScreen* this) {
int ok = getmouse(&mevent);
if (ok == OK) {
if (mevent.y >= panel->y && mevent.y < LINES - 1) {
Panel_setSelected(panel, mevent.y - panel->y + panel->scrollV);
Panel_setSelected(panel, mevent.y - panel->y + panel->scrollV - 1);
ch = 0;
} else if (mevent.y == LINES - 1) {
ch = IncSet_synthesizeEvent(this->inc, mevent.x);