actually use downEvent detection, fixes #1075

This commit is contained in:
Helium314 2024-09-02 21:08:37 +02:00
parent ab34815c7d
commit 404f6a5726

View file

@ -408,7 +408,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
wordView.setEllipsize(TextUtils.TruncateAt.END);
AtomicBoolean downOk = new AtomicBoolean(false);
wordView.setOnTouchListener((view1, motionEvent) -> {
if (motionEvent.getAction() == MotionEvent.ACTION_UP) {
if (motionEvent.getAction() == MotionEvent.ACTION_UP && downOk.get()) {
final float x = motionEvent.getX();
final float y = motionEvent.getY();
if (0 < x && x < w && 0 < y && y < h) {