iOS client for Grain grain.social
ios photography atproto
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: mark story viewed at 1% timer progress instead of 25%

If the timer starts at all the story counts as seen — the 25% threshold
was too conservative and missed quick swipes. 1% fires after ~50ms of
playback, ensuring a non-zero guard without requiring the user to sit
through a quarter of the story.

+1 -1
+1 -1
Grain/Views/Stories/StoryViewer.swift
··· 24 24 } catch { return } 25 25 guard !Task.isCancelled else { return } 26 26 progress = CGFloat(tick) / CGFloat(totalTicks) 27 - if !quarterFired, progress >= 0.25 { 27 + if !quarterFired, progress >= 0.01 { 28 28 quarterFired = true 29 29 onQuarter?() 30 30 }