Commit 342be7ae authored by Tae Hoon's avatar Tae Hoon

listen toggling replying event as well

parent cf73255c
......@@ -41,11 +41,13 @@ const FloatingPostButton = {
window.addEventListener('scroll', this.handleScrollStart)
window.addEventListener('scroll', this.handleScrollEnd)
window.addEventListener('resize', this.handleResize)
window.addEventListener('toggleInlineReply', this.handleToggleInlineReply)
},
deactivateFloatingPostButtonAutohide () {
window.removeEventListener('scroll', this.handleScrollStart)
window.removeEventListener('scroll', this.handleScrollEnd)
window.removeEventListener('resize', this.handleResize)
window.removeEventListener('toggleInlineReply', this.handleToggleInlineReply)
},
openPostForm () {
this.$store.dispatch('openPostStatusModal')
......@@ -93,7 +95,11 @@ const FloatingPostButton = {
handleResize: debounce(function () {
this.handleOSK()
this.checkHoverInlineReply()
}, 100)
}, 100),
handleToggleInlineReply () {
this.$nextTick(() => this.checkHoverInlineReply())
}
}
}
......
......@@ -378,6 +378,7 @@ const Status = {
},
toggleReplying () {
this.replying = !this.replying
window.dispatchEvent(new Event('toggleInlineReply', { open: this.replying }))
},
gotoOriginal (id) {
if (this.inConversation) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment