Skip to content

Commit

Permalink
Fix a11y scroll direction (flutter#3841)
Browse files Browse the repository at this point in the history
See also flutter#3701
  • Loading branch information
goderbauer authored Jun 29, 2017
1 parent 8ad1576 commit d2d152f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public boolean performAction(int virtualViewId, int action, Bundle arguments) {
mOwner.dispatchSemanticsAction(virtualViewId, SEMANTICS_ACTION_LONG_PRESS);
return true;
}
case AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD: {
case AccessibilityNodeInfo.ACTION_SCROLL_FORWARD: {
if ((object.actions & SEMANTICS_ACTION_SCROLL_UP) != 0) {
mOwner.dispatchSemanticsAction(virtualViewId, SEMANTICS_ACTION_SCROLL_UP);
} else if ((object.actions & SEMANTICS_ACTION_SCROLL_LEFT) != 0) {
Expand All @@ -172,7 +172,7 @@ public boolean performAction(int virtualViewId, int action, Bundle arguments) {
}
return true;
}
case AccessibilityNodeInfo.ACTION_SCROLL_FORWARD: {
case AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD: {
if ((object.actions & SEMANTICS_ACTION_SCROLL_DOWN) != 0) {
mOwner.dispatchSemanticsAction(virtualViewId, SEMANTICS_ACTION_SCROLL_DOWN);
} else if ((object.actions & SEMANTICS_ACTION_SCROLL_RIGHT) != 0) {
Expand Down

0 comments on commit d2d152f

Please sign in to comment.