prevent handlebar jump when using motion only mode

This commit is contained in:
Josh Hawkins 2024-12-29 08:32:36 -06:00
parent b2fee81123
commit cf09fc921d

View File

@ -389,7 +389,7 @@ function useDraggableElement({
(time) => time === alignedSegmentTime, (time) => time === alignedSegmentTime,
); );
if (segmentIndex !== 0) { if (segmentIndex >= 0) {
const segmentStart = segmentIndex * segmentHeight; const segmentStart = segmentIndex * segmentHeight;
const offset = const offset =