Skip to content

Conversation

breynolds-dts
Copy link

Snapping added for steps, VA/NVA, and walking/standing, with a 10px tolerance

Still need to add snapping for ergonomics peaks, but that can probably be done in a follow up

…and snapping added for steps, VA/NVA, and walking/standing, with a 10px tolerance
Copy link

@hobinjk-dts hobinjk-dts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a strange bug where being to the right of a snap point would highlight poses as if it were to the left. Also looks like a visual bug where the walk vs stand is sometimes yellow for the first pose

weird.timeline.behavior.mov

}

// Returns the start/end times of colored regions in the poses - with similar logic as in drawSpaghettiPoses
getPoseBreakTimestamps(poses) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think instead of duplicating the logic it would be better to store an array of lastBreakTimestamps in drawSpaghettiPoses

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! And thanks for catching that bug. I'll fix those

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you missed editing this one, the above getWalkStandSnappableTimes looks good though!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, forgot to delete that after swapping away from using it

@breynolds-dts
Copy link
Author

Does this fix it for you? I fixed a couple of small bugs but I'm not sure if it covers the same one you were experiencing.

Copy link

@hobinjk-dts hobinjk-dts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and LGTM! Nice work!

@breynolds-dts breynolds-dts merged commit c4d54b5 into main Oct 9, 2025
5 checks passed
@breynolds-dts breynolds-dts deleted the timeline-snapping branch October 9, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants