Skip to content

Commit

Permalink
fix: fix delete-and-redraft in Firefox Android
Browse files Browse the repository at this point in the history
fixes #1681
  • Loading branch information
nolanlawson committed May 3, 2020
1 parent 5348b3c commit c8f2702
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes/_components/compose/ComposeStickyButton.html
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c8f2702

Please sign in to comment.