mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: ensure correct type assertion for snappedTime in useTimelineSnapping
This commit is contained in:
@@ -126,7 +126,9 @@ export function useTimelineSnapping({
|
|||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
snappedTime: closestSnapPoint ? closestSnapPoint.time : targetTime,
|
snappedTime: closestSnapPoint
|
||||||
|
? (closestSnapPoint as SnapPoint).time
|
||||||
|
: targetTime,
|
||||||
snapPoint: closestSnapPoint,
|
snapPoint: closestSnapPoint,
|
||||||
snapDistance: closestDistance,
|
snapDistance: closestDistance,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user