Skip to content

Commit

Permalink
Make page down properly reach last element if less elements are left …
Browse files Browse the repository at this point in the history
…to skip.
  • Loading branch information
Rinnegatamante committed Sep 9, 2022
1 parent b86994e commit 6477acf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions selector/main.cpp
Expand Up @@ -1774,11 +1774,10 @@ int main(int argc, char *argv[]) {
}
} else if (increment_idx) {
increment_idx++;
if (increment_idx == 21 || g->next == NULL) {
ImGui::GetCurrentContext()->NavId = ImGui::GetCurrentContext()->CurrentWindow->DC.LastItemId;
ImGui::SetScrollHere();
ImGui::GetCurrentContext()->NavId = ImGui::GetCurrentContext()->CurrentWindow->DC.LastItemId;
ImGui::SetScrollHere();
if (increment_idx == 21 || g->next == NULL)
increment_idx = 0;
}
} else if (fast_decrement) {
if (!decremented_app)
decrement_stack[decrement_stack_idx++] = g;
Expand Down

0 comments on commit 6477acf

Please sign in to comment.