mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Merge pull request #1093 from syldrathecat/msginput-cursor-rect
Make cursoring up/down more consistent on some setups
This commit is contained in:
commit
2a6bf8e839
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue