feat: reduce mark read in range delay

This commit is contained in:
DIYgod 2024-07-20 16:06:31 +08:00
parent 95ad958a09
commit d67f488f3d
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -112,6 +112,7 @@ export const PreviewImageContent: FC<{
return (
<Wrapper src={currentSrc}>
<Swiper
loop
initialSlide={initialIndex}
scrollbar={{
hide: true,

View File

@ -26,7 +26,7 @@ export const useEntryMarkReadHandler = (entriesIds: string[]) => {
if (!idSlice) return
batchMarkRead(idSlice)
},
1000,
500,
{ leading: false },
)