Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 06e05e6

Browse files
committed
rename BackEvent touchX -> x and touchY -> y
1 parent 0475358 commit 06e05e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/platform/android/io/flutter/embedding/engine/systemchannels/BackGestureChannel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ public void setMethodCallHandler(@Nullable MethodChannel.MethodCallHandler handl
117117
@RequiresApi(API_LEVELS.API_34)
118118
private Map<String, Object> backEventToJsonMap(@NonNull BackEvent backEvent) {
119119
Map<String, Object> message = new HashMap<>(4);
120-
message.put("touchX", Float.isNaN(backEvent.getTouchX()) ? null : backEvent.getTouchX());
121-
message.put("touchY", Float.isNaN(backEvent.getTouchY()) ? null : backEvent.getTouchY());
120+
message.put("x", Float.isNaN(backEvent.getTouchX()) ? null : backEvent.getTouchX());
121+
message.put("y", Float.isNaN(backEvent.getTouchY()) ? null : backEvent.getTouchY());
122122
message.put("progress", backEvent.getProgress());
123123
message.put("swipeEdge", backEvent.getSwipeEdge());
124124

0 commit comments

Comments
 (0)