mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
working x offset logic bugfix
This commit is contained in:
parent
ffce4d32cb
commit
eba5827092
1 changed files with 3 additions and 0 deletions
|
@ -3063,7 +3063,10 @@ function Ace2Inner() {
|
||||||
rep.selStart[1],
|
rep.selStart[1],
|
||||||
rep.selEnd[1],
|
rep.selEnd[1],
|
||||||
];
|
];
|
||||||
|
} else {
|
||||||
|
previousCharacterOffset = [0, 0];
|
||||||
}
|
}
|
||||||
|
top.console.log('previousCharacterOffset', previousCharacterOffset);
|
||||||
|
|
||||||
// boolean - reflects if the user is attempting to highlight content
|
// boolean - reflects if the user is attempting to highlight content
|
||||||
const highlighting = shiftKey && (rep.selStart[0] !== rep.selEnd[0] || rep.selStart[1] !== rep.selEnd[1]);
|
const highlighting = shiftKey && (rep.selStart[0] !== rep.selEnd[0] || rep.selStart[1] !== rep.selEnd[1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue