Skip to content

Commit 2401d2c

Browse files
committed
Fix key preview centering given magnification
1 parent 82de965 commit 2401d2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/io/github/yawnoc/strokeinput/InputContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ private void updateKeyPreview() {
682682
final int previewHeight = keyPreview.height;
683683

684684
final int previewMargin = activeKey.previewMargin;
685-
final int previewX = activeKey.x;
685+
final int previewX = activeKey.x - (previewWidth - activeKey.width) / 2;
686686
final int previewY = activeKey.y - previewHeight - previewMargin;
687687

688688
if (keyPreviewPopup.isShowing()) {

0 commit comments

Comments
 (0)