Skip to content

Commit

Permalink
Revert 4f13a2b.
Browse files Browse the repository at this point in the history
  • Loading branch information
LuNeder committed Jul 23, 2024
1 parent a733b5d commit 7b11608
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions src/assets/oneko.js/oneko.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@

document.body.appendChild(nekoEl);

document.addEventListener("wheel", function (event) {
nekoPosY -= event.deltaY / 10;
updatePos();
});

document.addEventListener("mousemove", function (event) {
mousePosX = event.clientX;
mousePosY = event.clientY;
Expand All @@ -129,8 +124,8 @@
lastFrameTimestamp = timestamp;
}
if (timestamp - lastFrameTimestamp > 100) {
lastFrameTimestamp = timestamp;
frame();
lastFrameTimestamp = timestamp
frame()
}
window.requestAnimationFrame(onAnimationFrame);
}
Expand Down Expand Up @@ -279,13 +274,9 @@
nekoPosX = Math.min(Math.max(16, nekoPosX), window.innerWidth - 16);
nekoPosY = Math.min(Math.max(16, nekoPosY), window.innerHeight - 16);

updatePos();
}

function updatePos() {
nekoEl.style.left = `${nekoPosX - 16}px`;
nekoEl.style.top = `${nekoPosY - 16}px`;
nekoEl.style.left = `${nekoPosX - 16}px`;
nekoEl.style.top = `${nekoPosY - 16}px`;
}

init();
})();
})();

1 comment on commit 7b11608

@gelos-bot
Copy link
Contributor

@gelos-bot gelos-bot bot commented on 7b11608 Jul 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esse commit pode ser visualizado em:
https://staging.gelos.club/luana-update-membrana

Caminhos modificados:

Caminhos adicionados

Please sign in to comment.