feat(sddm): delay first input

This commit is contained in:
Pihkaal
2024-09-12 22:59:40 +02:00
parent b88f7b3d26
commit 2c5b6b3ce3

View File

@@ -50,7 +50,7 @@ export const Sddm = () => {
Math.random() > 0.15;
setPassword(Math.max(0, password + (canType ? 1 : -1)));
},
password === 0 ? 1000 : Math.random() * 250 + 100,
password === 0 ? 3000 : Math.random() * 250 + 100,
);
return () => clearTimeout(timeout);
}, [password]);