support scroll backward to minus one screen via voice/switch access
Bug: 140406263 Test: Manual Change-Id: I604b12f8ba8706cbabc28acafd6c151166832f22
This commit is contained in:
1 parent
3463d1c5f9
commit
d5af944f41
2 files changed
+22
-7
No files matched your search
@@ -1034,6 +1034,13 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean onOverscroll(int amount) {
|
||||
// Enforce overscroll on -1 direction
|
||||
if ((amount > 0 && !mIsRtl) || (amount < 0 && mIsRtl)) return false;
|
||||
return super.onOverscroll(amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldFlingForVelocity(int velocityX) {
|
||||
// When the overlay is moving, the fling or settle transition is controlled by the overlay.
|
||||
|
||||
Reference in new issue
Block a user