constrain
abstract fun constrain(proposed: TimeRange, handle: TrimHandle, duration: Duration): TimeRange(source)
Corrects proposed into a range this constraint allows.
Return
The corrected range.
Parameters
proposed
What the gesture asked for.
handle
Which end of the range moved.
duration
How long the source is, which no range may run past.