forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1786119 - Set current size to EdgeEffect when reinitializing Over…
…scrollEdgeEffect. r=geckoview-reviewers,owlish When switching to previous tab, overscroll animation doesn't work since new `EdgeEffect` doesn't have size. So we should set it from previous information. If new size is available, `GeckoSession.onWindowBoundsChanged` will set new size. Also, this fix includes that `OverscrollEdgeEffect` doesn't use current `GeckoSession` to draw edge effect. When switching to new `GeckoSession`, we should set it to `OverscrollEdgeEffect`. `OverscrollEdgeEffect` is public API, so I don't modify it for this. Differential Revision: https://phabricator.services.mozilla.com/D155144
- Loading branch information
1 parent
dd21530
commit 236776e
Showing
3 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters