make scrolling faster

This commit is contained in:
Boaz Sender 2025-03-31 12:41:12 -07:00
parent 869e1e574c
commit 2f8109d1e2
2 changed files with 6 additions and 6 deletions

View file

@ -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);
} }

View file

@ -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);
} }