mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-22 15:19:10 +00:00
actually use downEvent detection, fixes #1075
This commit is contained in:
parent
ab34815c7d
commit
404f6a5726
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue