mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-26 18:09:40 +08:00
removed console logs
This commit is contained in:
parent
7e07ba6e97
commit
68a3724066
1 changed files with 0 additions and 14 deletions
|
|
@ -40,10 +40,6 @@ export async function updatePosition(): Promise<void> {
|
|||
document.querySelector("#caret")?.getBoundingClientRect().width ?? 0
|
||||
);
|
||||
|
||||
if (caret.is(":visible") === false) {
|
||||
console.log("cartet is invisisble");
|
||||
}
|
||||
|
||||
if (["block", "outline", "underline"].includes(Config.caretStyle)) {
|
||||
caretWidth /= 3;
|
||||
}
|
||||
|
|
@ -128,14 +124,9 @@ export async function updatePosition(): Promise<void> {
|
|||
}
|
||||
}
|
||||
|
||||
console.log("currentletterposleft", currentLetterPosLeft);
|
||||
console.log("caretWidth", caretWidth);
|
||||
|
||||
let smoothlinescroll = $("#words .smoothScroller").height();
|
||||
if (smoothlinescroll === undefined) smoothlinescroll = 0;
|
||||
|
||||
console.log(newTop, newLeft);
|
||||
|
||||
if (Config.smoothCaret) {
|
||||
caret.stop(true, false).animate(
|
||||
{
|
||||
|
|
@ -166,11 +157,6 @@ export async function updatePosition(): Promise<void> {
|
|||
TestActive.get()
|
||||
) {
|
||||
const newscrolltop = newTop - middlePos / 2;
|
||||
// console.log('---------');
|
||||
// console.log(newTop);
|
||||
// console.log(middlePos);
|
||||
// console.log(browserHeight);
|
||||
// console.log(contentHeight);
|
||||
window.scrollTo({
|
||||
left: 0,
|
||||
top: newscrolltop,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue