fix: ensure correct type assertion for snappedTime in useTimelineSnapping
This commit is contained in:
parent
e3cb491a29
commit
0f05d25e8a
|
|
@ -126,7 +126,9 @@ export function useTimelineSnapping({
|
|||
});
|
||||
|
||||
return {
|
||||
snappedTime: closestSnapPoint ? closestSnapPoint.time : targetTime,
|
||||
snappedTime: closestSnapPoint
|
||||
? (closestSnapPoint as SnapPoint).time
|
||||
: targetTime,
|
||||
snapPoint: closestSnapPoint,
|
||||
snapDistance: closestDistance,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue