Merge "support scroll backward to minus one screen via voice/switch access" into ub-launcher3-qt-future-dev
am: 6462a44935
Change-Id: I686c2204c4229a1027924bca11c048408ff80315
This commit is contained in:
commit
388a2122b1
2 files changed
+22
-7
No files matched your search
@@ -1037,6 +1037,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