prevent call to scroll if the value doesn't change because firefox is stupid
This commit is contained in:
parent
3963f240d5
commit
553155fc49
@ -533,10 +533,12 @@ const PostStatusForm = {
|
|||||||
const totalDelta = shouldScrollToBottom ? bottomChangeDelta : 0
|
const totalDelta = shouldScrollToBottom ? bottomChangeDelta : 0
|
||||||
const targetScroll = currentScroll + totalDelta
|
const targetScroll = currentScroll + totalDelta
|
||||||
|
|
||||||
if (scrollerRef === window) {
|
if (totalDelta >= 1) {
|
||||||
scrollerRef.scroll(0, targetScroll)
|
if (scrollerRef === window) {
|
||||||
} else {
|
scrollerRef.scroll(0, targetScroll)
|
||||||
scrollerRef.scrollTop = targetScroll
|
} else {
|
||||||
|
scrollerRef.scrollTop = targetScroll
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$refs['emoji-input'].resize()
|
this.$refs['emoji-input'].resize()
|
||||||
|
Loading…
Reference in New Issue
Block a user