mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
working shift page up / down
This commit is contained in:
parent
1991c439f2
commit
a75decf33c
3 changed files with 14029 additions and 40 deletions
|
@ -412,8 +412,8 @@ Scroll.prototype.getFirstVisibleCharacter = function (direction, rep) {
|
|||
const numberOfVisibleChars = this.getCountOfVisibleCharsInViewport(currentLine, viewport);
|
||||
|
||||
// TODO, figure out how many chars are visible in line.
|
||||
modifiedRep.selStart[1] = rep.selStart[1] + numberOfVisibleChars;
|
||||
modifiedRep.selEnd[1] = rep.selEnd[1] + numberOfVisibleChars;
|
||||
modifiedRep.selStart[1] = rep.selStart[1] + numberOfVisibleChars || 0;
|
||||
modifiedRep.selEnd[1] = rep.selEnd[1] + numberOfVisibleChars || 0;
|
||||
return modifiedRep;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue