1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-23 01:46:39 +01:00

prevent call to scroll if the value doesn't change because firefox is stupid

This commit is contained in:
Shpuld Shpuldson 2020-11-09 14:42:16 +02:00
parent 3963f240d5
commit 553155fc49

View File

@ -533,10 +533,12 @@ const PostStatusForm = {
const totalDelta = shouldScrollToBottom ? bottomChangeDelta : 0
const targetScroll = currentScroll + totalDelta
if (scrollerRef === window) {
scrollerRef.scroll(0, targetScroll)
} else {
scrollerRef.scrollTop = targetScroll
if (totalDelta >= 1) {
if (scrollerRef === window) {
scrollerRef.scroll(0, targetScroll)
} else {
scrollerRef.scrollTop = targetScroll
}
}
this.$refs['emoji-input'].resize()