fix: fix delete-and-redraft in Firefox Android (#1762)

fixes #1681
This commit is contained in:
Nolan Lawson 2020-05-03 10:45:11 -07:00 committed by GitHub
parent 5348b3ccce
commit 4b4cee3662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@
(await importShowComposeDialog())()
},
setupIntersectionObservers () {
const { showSticky } = this.get()
if (!showSticky) {
return // no need to set up observers if this button can never be sticky (e.g. dialogs)
}
const sentinel = this.refs.sentinel
this.__stickyObserver = new IntersectionObserver(entries => this.onObserve(entries))