You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
copy GestureDetector from AOSP
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1638,6 +1638,7 @@ public final class MotionEvent extends InputEvent {
|
||||
ev.coord_y = other.coord_y;
|
||||
ev.raw_x = other.raw_x;
|
||||
ev.raw_y = other.raw_y;
|
||||
ev.eventTime = other.eventTime;
|
||||
return ev;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,11 +24,11 @@ public class ViewConfiguration {
|
||||
}
|
||||
|
||||
public static int getTapTimeout() {
|
||||
return 0;
|
||||
return 100;
|
||||
}
|
||||
|
||||
public static int getLongPressTimeout() {
|
||||
return 0;
|
||||
return 400;
|
||||
}
|
||||
|
||||
public int getScaledPagingTouchSlop(){
|
||||
@@ -40,7 +40,7 @@ public class ViewConfiguration {
|
||||
}
|
||||
|
||||
public static int getDoubleTapTimeout() {
|
||||
return 0;
|
||||
return 300;
|
||||
}
|
||||
|
||||
public int getScaledDoubleTapSlop() {
|
||||
|
||||
Reference in New Issue
Block a user