summary refs log tree commit diff
diff options
context:
space:
mode:
authorSyldraTheCat <syldratube@gmail.com>2022-06-13 07:22:09 +0000
committerSyldraTheCat <syldratube@gmail.com>2022-06-13 07:22:09 +0000
commitffa4dca8b318d00d4514298eb21a4fb3cdcf146c (patch)
treef51fd0b81c5a464450d09e766dbf2f458b04af48
parentFix crash on logout (why did that line vanish?!?) (diff)
downloadnheko-ffa4dca8b318d00d4514298eb21a4fb3cdcf146c.tar.xz
Make cursoring up/down more consistent on some setups
-rw-r--r--resources/qml/MessageInput.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml

index 76c498d9..8a5611df 100644 --- a/resources/qml/MessageInput.qml +++ b/resources/qml/MessageInput.qml
@@ -278,7 +278,7 @@ Rectangle { } idx++; } - } else if (positionAt(0, cursorRectangle.y) === 0) { + } else if (positionAt(0, cursorRectangle.y + cursorRectangle.height / 2) === 0) { event.accepted = true; positionCursorAtStart(); } @@ -295,7 +295,7 @@ Rectangle { } idx--; } - } else if (positionAt(width, cursorRectangle.y + 2) === messageInput.length) { + } else if (positionAt(width, cursorRectangle.y + cursorRectangle.height / 2) === messageInput.length) { event.accepted = true; positionCursorAtEnd(); }