Commit 759caf0f authored by Hisham's avatar Hisham
Browse files

Make PgDown behavior more usual.

Closes #480.
parent c37be409
...@@ -412,7 +412,7 @@ bool Panel_onKey(Panel* this, int key) { ...@@ -412,7 +412,7 @@ bool Panel_onKey(Panel* this, int key) {
break; break;
case KEY_NPAGE: case KEY_NPAGE:
this->selected += (this->h - 1); this->selected += (this->h - 1);
this->scrollV += (this->h - 1); this->scrollV = MIN(MAX(0, Vector_size(this->items) - this->h), this->selected - this->h);
this->needsRedraw = true; this->needsRedraw = true;
break; break;
case KEY_WHEELUP: case KEY_WHEELUP:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment