Open arjanmels opened 1 year ago
Added improvement to pushing of start/end time. When the minDuration was short and dragging fast, the touchpoint could overtake the other (non-touched) handle leading to a jump form minDuration to maxDuration.
Also cleaned up to use normalizeAngle everywhere.
Fixed problem when abs(start-end)>180 with previous commit.
Select the start or endpoint whichever is closer to the touchpoint. This prevent jumps when start and endpoint are overlapping, because the endpoint would be selected preferentially and if the touchpoint was before the startpoint, end and startpoint would get swapped.