From 66720f42bcee188300243680fb8f0c12f859712a Mon Sep 17 00:00:00 2001 From: maia arson crimew Date: Thu, 11 May 2023 12:06:46 +0200 Subject: [PATCH] oneko: dont start running until mouse moves --- src/static/oneko.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/oneko.js b/src/static/oneko.js index 1e5d540..7900f91 100644 --- a/src/static/oneko.js +++ b/src/static/oneko.js @@ -10,8 +10,8 @@ function oneko() { const nekoEl = document.createElement("div"); let nekoPosX = getRandomInt(32, window.innerWidth - 63); let nekoPosY = getRandomInt(32, window.innerHeight - 63); - let mousePosX = window.innerWidth / 2; - let mousePosY = window.innerHeight / 2; + let mousePosX = nekoPosX - 32; + let mousePosY = nekoPosY - 32; let frameCount = 0; let idleTime = 0; let idleAnimation = null;