From dd715f07c391173bc1c4c57252043fdf4f843ce2 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 24 Sep 2021 12:58:29 -0400 Subject: fixed double-click on trim ends to reset properly. --- .../collections/CollectionStackedTimeline.tsx | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx index 899e22984..8f8936997 100644 --- a/src/client/views/collections/CollectionStackedTimeline.tsx +++ b/src/client/views/collections/CollectionStackedTimeline.tsx @@ -311,7 +311,7 @@ export class CollectionStackedTimeline extends CollectionSubView< emptyFunction, action((e, doubleTap) => { if (doubleTap) { - this.props.setStartTrim(0); + this.props.setStartTrim(this.props.clipStart); } }) ); @@ -339,7 +339,7 @@ export class CollectionStackedTimeline extends CollectionSubView< emptyFunction, action((e, doubleTap) => { if (doubleTap) { - this.props.setEndTrim(this.clipDuration); + this.props.setEndTrim(this.props.clipEnd); } }) ); @@ -860,21 +860,21 @@ class StackedTimelineAnchor extends React.Component {inner.view} {!inner.anchor.view || !SelectionManager.IsSelected(inner.anchor.view) ? null : ( - <> -
this.onAnchorDown(e, this.props.mark, true)} - /> -
- this.onAnchorDown(e, this.props.mark, false) - } - /> - - )} + <> +
this.onAnchorDown(e, this.props.mark, true)} + /> +
+ this.onAnchorDown(e, this.props.mark, false) + } + /> + + )} ); } -- cgit v1.2.3-70-g09d2