Skip to content
Snippets Groups Projects
Unverified Commit 2a6bf8e8 authored by Nicolas Werner's avatar Nicolas Werner Committed by GitHub
Browse files

Merge pull request #1093 from syldrathecat/msginput-cursor-rect

Make cursoring up/down more consistent on some setups
parents 75efee55 ffa4dca8
No related branches found
No related tags found
No related merge requests found
Pipeline #3226 passed
...@@ -278,7 +278,7 @@ Rectangle { ...@@ -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 { ...@@ -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();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment