bugfixing

This commit is contained in:
MuslemRahimi 2025-03-07 16:01:27 +01:00
parent 7f5a7609b0
commit a36ab897c2

View File

@ -81,7 +81,7 @@
// Reset the flag after navigation // Reset the flag after navigation
setTimeout(() => { setTimeout(() => {
isNavigating = false; isNavigating = false;
}, 50); }, 100);
} }
async function popularTicker(state) { async function popularTicker(state) {
@ -114,7 +114,7 @@
// Reset the flag after a short delay // Reset the flag after a short delay
setTimeout(() => { setTimeout(() => {
isNavigating = false; isNavigating = false;
}, 50); }, 100);
} }
function searchBarTicker(state) { function searchBarTicker(state) {
@ -171,7 +171,7 @@
); );
searchBarData = await response?.json(); searchBarData = await response?.json();
isLoading = false; isLoading = false;
}, 50); // delay }, 200); // delay
} }
function handleKeyDown(symbol) { function handleKeyDown(symbol) {
@ -231,6 +231,7 @@
$: { $: {
if (searchBarModalChecked === true && typeof window !== "undefined") { if (searchBarModalChecked === true && typeof window !== "undefined") {
console.log("open");
if ($screenWidth > 640) { if ($screenWidth > 640) {
inputElement.focus(); inputElement.focus();
} }