Enhance snapping functionality in VideoEditor to include line snapping

This commit improves the snapping feature in the VideoEditor class by adding the ability to snap new tracking points to the closest point on the line segment between consecutive tracking points, in addition to existing point snapping. The distance calculation logic has been refined, and the specification has been updated to reflect the new snapping behavior, which now operates within a 10px radius for both point and line snapping, enhancing the precision of motion tracking.
This commit is contained in:
2025-09-17 15:12:35 +02:00
parent 498a1911b1
commit 68a1cc3e7d
2 changed files with 75 additions and 11 deletions

View File

@@ -57,8 +57,9 @@ Be careful to save and load settings when navigating this way
### Motion Tracking
- **Right-click**: Add tracking point (green circle with white border)
- **Right-click existing point**: Remove tracking point (within 50px)
- **Right-click near existing point**: Snap to existing point from any frame (within 50px radius)
- **Right-click existing point**: Remove tracking point (within 10px)
- **Right-click near existing point**: Snap to existing point from any frame (within 10px radius)
- **Right-click near motion path**: Snap to closest point on yellow arrow line between tracking points (within 10px radius)
- **v**: Toggle motion tracking on/off
- **V**: Clear all tracking points
- **Blue cross**: Shows computed tracking position