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: