mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
editor: fix enter key keep line in view (#4639)
This commit is contained in:
parent
c969ae58c2
commit
4862d6fa9c
3 changed files with 39 additions and 8 deletions
|
@ -2179,7 +2179,7 @@ function Ace2Inner() {
|
|||
isScrollableEditEvent(currentCallStack.type);
|
||||
const innerHeight = getInnerHeight();
|
||||
scroll.scrollWhenCaretIsInTheLastLineOfViewportWhenNecessary(
|
||||
rep, isScrollableEvent, innerHeight
|
||||
rep, isScrollableEvent, innerHeight*2
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue