Update ace2_inner.js
parent
b61d8d99d1
commit
b59f6a4d6f
|
@ -3816,7 +3816,7 @@ function Ace2Inner(){
|
||||||
}
|
}
|
||||||
updateBrowserSelectionFromRep();
|
updateBrowserSelectionFromRep();
|
||||||
var myselection = document.getSelection(); // get the current caret selection, can't use rep. here because that only gives us the start position not the current
|
var myselection = document.getSelection(); // get the current caret selection, can't use rep. here because that only gives us the start position not the current
|
||||||
var caretOffsetTop = myselection.focusNode.parentNode.offsetTop | myselection.focusNode.offsetTop; // get the carets selection offset in px IE 214
|
var caretOffsetTop = myselection.focusNode.parentNode.offsetTop || myselection.focusNode.offsetTop; // get the carets selection offset in px IE 214
|
||||||
// top.console.log(caretOffsetTop);
|
// top.console.log(caretOffsetTop);
|
||||||
setScrollY(caretOffsetTop); // set the scrollY offset of the viewport on the document
|
setScrollY(caretOffsetTop); // set the scrollY offset of the viewport on the document
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue