Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge #6549
Browse files Browse the repository at this point in the history
6549: For #6548: Force expand toolbar if touch unhandled r=mugurell a=sblatz



Co-authored-by: Sawyer Blatz <[email protected]>
  • Loading branch information
MozLando and sblatz committed Apr 7, 2020
2 parents 4c77753 + 1ea8ac0 commit 2f4dba9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ class BrowserToolbarBottomBehavior(
shouldSnapAfterScroll = type == ViewCompat.TYPE_TOUCH
snapAnimator.cancel()
true
} else if (engineView?.getInputResult() == EngineView.InputResult.INPUT_RESULT_UNHANDLED) {
// Force expand the toolbar if event is unhandled, otherwise user could get stuck in a
// state where they cannot show the toolbar
forceExpand(child)
snapAnimator.cancel()
false
} else {
false
}
Expand Down

0 comments on commit 2f4dba9

Please sign in to comment.