okay, don't focus the text area (too slow)
This commit is contained in:
parent
a6e598a2cb
commit
cd885d7c28
3 changed files with 4 additions and 5 deletions
|
|
@ -165,9 +165,8 @@ function HKCheckCompletion(jsonObject) {
|
||||||
(0,_page_functions_js__WEBPACK_IMPORTED_MODULE_1__.CheckboxSpoilersToggle)();
|
(0,_page_functions_js__WEBPACK_IMPORTED_MODULE_1__.CheckboxSpoilersToggle)();
|
||||||
/* focus the text area after analyzing the save, without scrolling the document */
|
/* focus the text area after analyzing the save, without scrolling the document */
|
||||||
|
|
||||||
document.getElementById("save-area").focus({
|
/* document.getElementById("save-area").focus({preventScroll: true}); */
|
||||||
preventScroll: true
|
// finish and show benchmark
|
||||||
}); // finish and show benchmark
|
|
||||||
|
|
||||||
benchHKCCEnd = new Date();
|
benchHKCCEnd = new Date();
|
||||||
console.info("HKCheckCompletion() time (ms) =", benchHKCCEnd - benchHKCCBegin);
|
console.info("HKCheckCompletion() time (ms) =", benchHKCCEnd - benchHKCCBegin);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -238,7 +238,7 @@ function HKCheckCompletion(jsonObject) {
|
||||||
CheckboxSpoilersToggle();
|
CheckboxSpoilersToggle();
|
||||||
|
|
||||||
/* focus the text area after analyzing the save, without scrolling the document */
|
/* focus the text area after analyzing the save, without scrolling the document */
|
||||||
document.getElementById("save-area").focus({preventScroll: true});
|
/* document.getElementById("save-area").focus({preventScroll: true}); */
|
||||||
|
|
||||||
// finish and show benchmark
|
// finish and show benchmark
|
||||||
benchHKCCEnd = new Date();
|
benchHKCCEnd = new Date();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue