Skip to content

Commit 92ebe92

Browse files
dfaureogoffart
authored andcommitted
SlintAndroidJavaHelper.java: fix left/right confusion
1 parent 973917c commit 92ebe92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/backends/android-activity/java/SlintAndroidJavaHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ public void setCursorPos(int left_x, int left_y, int right_x, int right_y, int c
252252
if (mCursorHandle != null) {
253253
mCursorHandle.hide();
254254
}
255-
mLeftHandle.setPosition(right_x, right_y);
256-
mRightHandle.setPosition(left_x, left_y);
255+
mLeftHandle.setPosition(left_x, left_y);
256+
mRightHandle.setPosition(right_x, right_y);
257257
handleHeight = mLeftHandle.getHeight();
258258
showActionMenu();
259259
} else {
@@ -449,9 +449,9 @@ public void run() {
449449
num_handles = cursor_position == anchor_position ? 1 : 2;
450450
}
451451
if (cursor_position < anchor_position) {
452-
mInputView.setCursorPos(anchor_x, anchor_y, cur_x, cur_y, cursor_height, num_handles);
453-
} else {
454452
mInputView.setCursorPos(cur_x, cur_y, anchor_x, anchor_y, cursor_height, num_handles);
453+
} else {
454+
mInputView.setCursorPos(anchor_x, anchor_y, cur_x, cur_y, cursor_height, num_handles);
455455
}
456456

457457
}

0 commit comments

Comments
 (0)