Slowing down gestures for virtual device
Change-Id: I636bd3c053295041d0ae4e5c97f2790f5a1e40dd
This commit is contained in:
parent
67b6541d7e
commit
dc5b2fbdbe
|
@ -28,7 +28,7 @@ import java.util.List;
|
|||
* Common overview pane for both Launcher and fallback recents
|
||||
*/
|
||||
public class BaseOverview extends LauncherInstrumentation.VisibleContainer {
|
||||
private static final int FLING_SPEED = 1500;
|
||||
private static final int FLING_SPEED = LauncherInstrumentation.needSlowGestures() ? 500 : 1500;
|
||||
private static final int FLINGS_FOR_DISMISS_LIMIT = 40;
|
||||
|
||||
BaseOverview(LauncherInstrumentation launcher) {
|
||||
|
|
|
@ -36,7 +36,8 @@ import com.android.launcher3.TestProtocol;
|
|||
* Operations on the workspace screen.
|
||||
*/
|
||||
public final class Workspace extends Home {
|
||||
private static final float FLING_SPEED = 3500.0F;
|
||||
private static final float FLING_SPEED =
|
||||
LauncherInstrumentation.needSlowGestures() ? 1500.0F : 3500.0F;
|
||||
private static final int DRAG_DURACTION = 2000;
|
||||
private final UiObject2 mHotseat;
|
||||
|
||||
|
|
Loading…
Reference in New Issue