Skip to content

Commit

Permalink
e
Browse files Browse the repository at this point in the history
  • Loading branch information
linzyt223 committed Sep 26, 2024
1 parent 1b49d98 commit 5925fdf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/src/main/java/com/artifex/mupdf/viewer/ReaderView.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.artifex.mupdf.fitz.Link;
import com.artifex.mupdf.fitz.StructuredText;
import com.artifex.mupdf.fitz.Point;

import java.util.LinkedList;
import java.util.NoSuchElementException;
Expand Down Expand Up @@ -67,7 +68,7 @@ public class ReaderView
private int mScrollerLastY;
private float mLastScaleFocusX;
private float mLastScaleFocusY;
private StructuredText mST = new StructuredText(123);
public StructuredText mST = new StructuredText(123);
protected Stack<Integer> mHistory;

static abstract class ViewMapper {
Expand Down Expand Up @@ -907,13 +908,13 @@ public void setLinksEnabled(boolean b) {
resetupChildren();
invalidate();
}
public int snapword(int x, int y) {
Point tmp1 = new Point();
public int snapword(float x, float y) {
com.artifex.mupdf.fitz.Point tmp1 = new com.artifex.mupdf.fitz.Point();
tmp1.x = x;
tmp1.y = y;
Point tmp2 = new Point();
tmp2.x = x + 50;
tmp2.y = y + 50;
tmp2.x = x + (float)50;
tmp2.y = y + (float)50;
return mST.snapSelection(tmp1, tmp2, mST.FZ_SELECT_WORDS);
}
public boolean onSingleTapUp(MotionEvent e) {
Expand Down

0 comments on commit 5925fdf

Please sign in to comment.