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

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))