mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 12:20:20 +01:00
Reset timers once cleared
This commit is contained in:
parent
39ce06d6b0
commit
4b9e070e5c
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user