mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-05 12:02:55 +01:00
fix: update dependencies in skipSegment callback for accurate state tracking
This commit is contained in:
@@ -78,9 +78,8 @@ export const useSegmentSkipper = ({
|
|||||||
haptic();
|
haptic();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[segmentType, totalDuration, seek, haptic],
|
[currentSegment, segmentType, totalDuration, seek, haptic],
|
||||||
);
|
);
|
||||||
|
|
||||||
// Auto-skip logic when mode is 'auto'
|
// Auto-skip logic when mode is 'auto'
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (skipMode !== "auto" || isPaused) {
|
if (skipMode !== "auto" || isPaused) {
|
||||||
|
|||||||
Reference in New Issue
Block a user