mirror of
https://git.youjo.love/youjo/youjo-fe.git
synced 2024-11-20 13:59:55 +01:00
prevent call to scroll if the value doesn't change because firefox is stupid
This commit is contained in:
parent
3963f240d5
commit
553155fc49
1 changed files with 6 additions and 4 deletions
|
@ -533,11 +533,13 @@ const PostStatusForm = {
|
|||
const totalDelta = shouldScrollToBottom ? bottomChangeDelta : 0
|
||||
const targetScroll = currentScroll + totalDelta
|
||||
|
||||
if (totalDelta >= 1) {
|
||||
if (scrollerRef === window) {
|
||||
scrollerRef.scroll(0, targetScroll)
|
||||
} else {
|
||||
scrollerRef.scrollTop = targetScroll
|
||||
}
|
||||
}
|
||||
|
||||
this.$refs['emoji-input'].resize()
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue