Reset timers once cleared

This commit is contained in:
Dustin Brett 2025-06-13 22:34:24 -07:00
parent 39ce06d6b0
commit 4b9e070e5c
2 changed files with 3 additions and 0 deletions

View File

@ -507,6 +507,7 @@ const useWallpaper = (
if (sessionLoaded) {
if (wallpaperTimerRef.current) {
window.clearTimeout(wallpaperTimerRef.current);
wallpaperTimerRef.current = 0;
}
if (wallpaperName && !WALLPAPER_WORKER_NAMES.includes(wallpaperName)) {

View File

@ -100,10 +100,12 @@ const useMenuContextState = (): MenuContextState => {
touchEvent.current = undefined;
}
window.clearTimeout(touchTimer.current);
touchTimer.current = 0;
},
onTouchMove: () => {
touchEvent.current = undefined;
window.clearTimeout(touchTimer.current);
touchTimer.current = 0;
},
onTouchStart: (event: React.TouchEvent) => {
event.preventDefault();