Skip to content

Commit

Permalink
点击增加3像素移动,防和谐
Browse files Browse the repository at this point in the history
  • Loading branch information
weimingjue committed Aug 3, 2020
1 parent 3dd54a3 commit 378310d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/wang/hongbaotest/HongBaoService.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ public void dispatchGestureMove(Path path, long mills) {
@RequiresApi(24)
public void dispatchGestureClick(int x, int y) {
Path path = new Path();
path.moveTo(x, y);
path.moveTo(x - 1, y - 1);
path.lineTo(x + 1, y + 1);
dispatchGesture(new GestureDescription.Builder().addStroke(new GestureDescription.StrokeDescription
(path, 0, 100)).build(), null, null);
}
Expand Down

0 comments on commit 378310d

Please sign in to comment.