1
0
Fork 0
mirror of https://github.com/mat-1/matdoesdev.git synced 2025-08-02 14:46:04 +00:00
This commit is contained in:
mat 2024-04-13 21:06:51 +00:00
parent bcf1e09e4f
commit d63a5de6ae

View file

@ -32,7 +32,7 @@
pathChangeTimestamps.push(Date.now())
while (pathChangeTimestamps[0] < Date.now() - 5000) pathChangeTimestamps.shift()
console.log(pathChangeTimestamps)
if (pathChangeTimestamps.length >= 1) {
if (pathChangeTimestamps.length >= 10) {
const { initGravity } = await import('$lib/gravity')
// wait 200ms for the animation to finish
await new Promise((resolve) => setTimeout(resolve, 200))