Scroll farther on PgUp/PgDn

This commit is contained in:
Loren Burkholder 2023-03-02 13:35:14 -05:00
parent 7bb509005c
commit 9429e3c000

View file

@ -206,7 +206,7 @@ Item {
Shortcut { Shortcut {
sequence: StandardKey.MoveToPreviousPage sequence: StandardKey.MoveToPreviousPage
onActivated: { onActivated: {
chat.contentY = chat.contentY - chat.height / 2; chat.contentY = chat.contentY - chat.height * 0.9;
chat.returnToBounds(); chat.returnToBounds();
} }
} }
@ -214,7 +214,7 @@ Item {
Shortcut { Shortcut {
sequence: StandardKey.MoveToNextPage sequence: StandardKey.MoveToNextPage
onActivated: { onActivated: {
chat.contentY = chat.contentY + chat.height / 2; chat.contentY = chat.contentY + chat.height * 0.9;
chat.returnToBounds(); chat.returnToBounds();
} }
} }