copy GestureDetector from AOSP

This commit is contained in:
Julian Winkler
2024-05-06 06:24:00 +02:00
parent efc401ed2f
commit cd4cd90f59
3 changed files with 816 additions and 14 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1638,6 +1638,7 @@ public final class MotionEvent extends InputEvent {
ev.coord_y = other.coord_y; ev.coord_y = other.coord_y;
ev.raw_x = other.raw_x; ev.raw_x = other.raw_x;
ev.raw_y = other.raw_y; ev.raw_y = other.raw_y;
ev.eventTime = other.eventTime;
return ev; return ev;
} }

View File

@@ -24,11 +24,11 @@ public class ViewConfiguration {
} }
public static int getTapTimeout() { public static int getTapTimeout() {
return 0; return 100;
} }
public static int getLongPressTimeout() { public static int getLongPressTimeout() {
return 0; return 400;
} }
public int getScaledPagingTouchSlop(){ public int getScaledPagingTouchSlop(){
@@ -40,7 +40,7 @@ public class ViewConfiguration {
} }
public static int getDoubleTapTimeout() { public static int getDoubleTapTimeout() {
return 0; return 300;
} }
public int getScaledDoubleTapSlop() { public int getScaledDoubleTapSlop() {