Make cursoring up/down more consistent on some setups

pull/1093/head
SyldraTheCat 3 years ago
parent f3ff56692e
commit ffa4dca8b3
No known key found for this signature in database
GPG Key ID: 280A2D3028A3E9C7
  1. 4
      resources/qml/MessageInput.qml

@ -278,7 +278,7 @@ Rectangle {
} }
idx++; idx++;
} }
} else if (positionAt(0, cursorRectangle.y) === 0) { } else if (positionAt(0, cursorRectangle.y + cursorRectangle.height / 2) === 0) {
event.accepted = true; event.accepted = true;
positionCursorAtStart(); positionCursorAtStart();
} }
@ -295,7 +295,7 @@ Rectangle {
} }
idx--; idx--;
} }
} else if (positionAt(width, cursorRectangle.y + 2) === messageInput.length) { } else if (positionAt(width, cursorRectangle.y + cursorRectangle.height / 2) === messageInput.length) {
event.accepted = true; event.accepted = true;
positionCursorAtEnd(); positionCursorAtEnd();
} }

Loading…
Cancel
Save