Merge branch 'fix/fix-1px-scroll-on-input' into 'develop'

Fix that 1px scroll on input for real this time maybe

See merge request pleroma/pleroma-fe!1282
このコミットが含まれているのは:
Shpuld Shpludson 2020-11-09 13:18:35 +00:00
コミット e6ca489d30
2個のファイルの変更2行の追加1行の削除

ファイルの表示

@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Fixed regression in react popup alignment and overflowing
- Fixed the occasional bug where screen would scroll 1px when typing into a reply form
## [2.2.0] - 2020-11-06

ファイルの表示

@ -531,7 +531,7 @@ const PostStatusForm = {
!(isFormBiggerThanScroller &&
this.$refs.textarea.selectionStart !== this.$refs.textarea.value.length)
const totalDelta = shouldScrollToBottom ? bottomChangeDelta : 0
const targetScroll = currentScroll + totalDelta
const targetScroll = Math.round(currentScroll + totalDelta)
if (scrollerRef === window) {
scrollerRef.scroll(0, targetScroll)