working x offset logic bugfix

page-down-up-bugfix
John McLear 2021-01-03 11:36:19 +00:00
parent ffce4d32cb
commit eba5827092
1 changed files with 3 additions and 0 deletions

View File

@ -3063,7 +3063,10 @@ function Ace2Inner() {
rep.selStart[1],
rep.selEnd[1],
];
} else {
previousCharacterOffset = [0, 0];
}
top.console.log('previousCharacterOffset', previousCharacterOffset);
// 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]);