Skip to content

Commit

Permalink
Fix bug with select text above first screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Enyby authored Apr 19, 2020
1 parent 987e4eb commit 94801f1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,9 +1230,8 @@ public boolean onTouchEvent(MotionEvent ev) {
private boolean onTouchEventWhileSelectingText(MotionEvent ev) {
int action = ev.getAction();
int cx = (int)(ev.getX() / mCharacterWidth);
int cy = Math.max(0,
(int)((ev.getY() + SELECT_TEXT_OFFSET_Y * mScaledDensity)
/ mCharacterHeight) + mTopRow);
int cy = (int)((ev.getY() + SELECT_TEXT_OFFSET_Y * mScaledDensity)
/ mCharacterHeight) + mTopRow;
switch (action) {
case MotionEvent.ACTION_DOWN:
mSelXAnchor = cx;
Expand Down

0 comments on commit 94801f1

Please sign in to comment.