Skip to content

Commit 9edd58e

Browse files
committed
HorizontalScrollView should delay child presses
In Recents in landscape, we were seeing blue flashes when scrolling; generally, almost every scrolling container should be delaying child presses to prevent this problem
1 parent c4f09e0 commit 9edd58e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/java/android/widget/HorizontalScrollView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,11 @@ public boolean onGenericMotionEvent(MotionEvent event) {
696696
return super.onGenericMotionEvent(event);
697697
}
698698

699+
@Override
700+
public boolean shouldDelayChildPressedState() {
701+
return true;
702+
}
703+
699704
@Override
700705
protected void onOverScrolled(int scrollX, int scrollY,
701706
boolean clampedX, boolean clampedY) {

0 commit comments

Comments
 (0)