Fix const name typo timePasseded

This commit is contained in:
sallbet 2023-03-13 04:00:09 +03:00
parent ff37418c81
commit 504718f489
Signed by: sallbet
GPG Key ID: 3C8A1BC17088B308

View File

@ -66,8 +66,8 @@ class PixelNotify {
while (index > 0) {
index--;
const [setTime, x, y] = this.pixelList[index];
const timePasseded = curTime - setTime;
if (timePasseded > PixelNotify.NOTIFICATION_TIME) {
const timePassed = curTime - setTime;
if (timePassed > PixelNotify.NOTIFICATION_TIME) {
this.pixelList.pop();
continue;
}
@ -75,7 +75,7 @@ class PixelNotify {
.map((z) => z + this.scale / 2);
// eslint-disable-next-line max-len
const notRadius = timePasseded / PixelNotify.NOTIFICATION_TIME * this.notificationRadius;
const notRadius = timePassed / PixelNotify.NOTIFICATION_TIME * this.notificationRadius;
const circleScale = notRadius / 100;
viewportCtx.save();
viewportCtx.scale(circleScale, circleScale);