forked from AkkomaGang/akkoma-fe
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
This commit is contained in:
commit
e6ca489d30
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue