From 0a224396eff65f6b236f0aecc88134c7839eaf01 Mon Sep 17 00:00:00 2001 From: MysterD Date: Wed, 17 May 2023 12:12:29 -0700 Subject: [PATCH] Make pageup/pagedown in the chat box better --- src/pc/djui/djui_chat_box.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/djui/djui_chat_box.c b/src/pc/djui/djui_chat_box.c index e21bc6d5..8833b75c 100644 --- a/src/pc/djui/djui_chat_box.c +++ b/src/pc/djui/djui_chat_box.c @@ -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; bool canScrollUp = (*yValue > yMax); 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) { case SCANCODE_UP: