make scrolling faster
This commit is contained in:
parent
869e1e574c
commit
2f8109d1e2
2 changed files with 6 additions and 6 deletions
|
|
@ -16,7 +16,7 @@ setInterval(() => {
|
||||||
if (tagCount > tag.length) {
|
if (tagCount > tag.length) {
|
||||||
tagCount = 0;
|
tagCount = 0;
|
||||||
}
|
}
|
||||||
}, 500);
|
}, 300);
|
||||||
const getStanza = async () => {
|
const getStanza = async () => {
|
||||||
const stanzaCount = await prisma.stanza.count();
|
const stanzaCount = await prisma.stanza.count();
|
||||||
const skip = Math.floor(Math.random() * stanzaCount);
|
const skip = Math.floor(Math.random() * stanzaCount);
|
||||||
|
|
@ -44,9 +44,9 @@ while (true) {
|
||||||
stanza = await getStanza();
|
stanza = await getStanza();
|
||||||
characterLocation = 0;
|
characterLocation = 0;
|
||||||
}
|
}
|
||||||
}, 700);
|
}, 500);
|
||||||
}
|
}
|
||||||
await timer((16 + stanza.length) * 750);
|
await timer((16 + stanza.length) * 550);
|
||||||
clearInterval(outerInterval);
|
clearInterval(outerInterval);
|
||||||
clearInterval(innerInterval);
|
clearInterval(innerInterval);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ setInterval(() => {
|
||||||
if (tagCount > tag.length) {
|
if (tagCount > tag.length) {
|
||||||
tagCount = 0;
|
tagCount = 0;
|
||||||
}
|
}
|
||||||
}, 500);
|
}, 300);
|
||||||
|
|
||||||
const getStanza = async () => {
|
const getStanza = async () => {
|
||||||
const stanzaCount = await prisma.stanza.count();
|
const stanzaCount = await prisma.stanza.count();
|
||||||
|
|
@ -61,9 +61,9 @@ while (true) {
|
||||||
stanza = await getStanza();
|
stanza = await getStanza();
|
||||||
characterLocation = 0;
|
characterLocation = 0;
|
||||||
}
|
}
|
||||||
}, 700);
|
}, 500);
|
||||||
}
|
}
|
||||||
await timer((16 + stanza.length) * 750);
|
await timer((16 + stanza.length) * 550);
|
||||||
clearInterval(outerInterval);
|
clearInterval(outerInterval);
|
||||||
clearInterval(innerInterval);
|
clearInterval(innerInterval);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue