Make pageup/pagedown in the chat box better

This commit is contained in:
MysterD 2023-05-17 12:12:29 -07:00
parent 4c0a226536
commit 0a224396ef
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ static bool djui_chat_box_input_on_key_down(struct DjuiBase* base, int scancode)
f32* yValue = &gDjuiChatBox->chatFlow->base.y.value; f32* yValue = &gDjuiChatBox->chatFlow->base.y.value;
bool canScrollUp = (*yValue > yMax); bool canScrollUp = (*yValue > yMax);
bool canScrollDown = (*yValue < 0); bool canScrollDown = (*yValue < 0);
f32 pageAmount = gDjuiChatBox->chatFlow->base.elem.height / 3.0f; f32 pageAmount = gDjuiChatBox->chatContainer->base.elem.height * 3.0f / 4.0f;
switch (scancode) { switch (scancode) {
case SCANCODE_UP: case SCANCODE_UP: