Skip to content

Commit

Permalink
fix: fix delete-and-redraft in Firefox Android (#1762)
Browse files Browse the repository at this point in the history
fixes #1681
  • Loading branch information
nolanlawson authored May 3, 2020
1 parent 5348b3c commit 4b4cee3
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 4b4cee3

Please sign in to comment.