const refreshCodeMirror = (element: any): void => {
element.codemirror.refresh();
- element.codemirror.setCursor(element.codemirror.getCursor());
+ element.codemirror.setCursor(element.codemirror.getCursor(), undefined, { scroll: false });
};
if (isTainted) {
const overrideScss = document.getElementById("overrideScss");
const refreshCodeMirror = (element) => {
element.codemirror.refresh();
- element.codemirror.setCursor(element.codemirror.getCursor());
+ element.codemirror.setCursor(element.codemirror.getCursor(), undefined, { scroll: false });
};
if (isTainted) {
EventHandler.add("com.woltlab.wcf.simpleTabMenu_styleTabMenuContainer", "select", () => {