diff options
author | bobzel <zzzman@gmail.com> | 2021-09-24 12:58:29 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-24 12:58:29 -0400 |
commit | dd715f07c391173bc1c4c57252043fdf4f843ce2 (patch) | |
tree | 9be861fca57f3a21c2e985f0e848baf93333f77c | |
parent | 2e51127cd8394d3cf9fb0ce4572c5790f1618d2f (diff) |
fixed double-click on trim ends to reset properly.
-rw-r--r-- | src/client/views/collections/CollectionStackedTimeline.tsx | 34 |
1 files changed, 17 insertions, 17 deletions
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<StackedTimelineAnchorProps> {inner.view} {!inner.anchor.view || !SelectionManager.IsSelected(inner.anchor.view) ? null : ( - <> - <div - key="left" - className="collectionStackedTimeline-left-resizer" - onPointerDown={(e) => this.onAnchorDown(e, this.props.mark, true)} - /> - <div - key="right" - className="collectionStackedTimeline-resizer" - onPointerDown={(e) => - this.onAnchorDown(e, this.props.mark, false) - } - /> - </> - )} + <> + <div + key="left" + className="collectionStackedTimeline-left-resizer" + onPointerDown={(e) => this.onAnchorDown(e, this.props.mark, true)} + /> + <div + key="right" + className="collectionStackedTimeline-resizer" + onPointerDown={(e) => + this.onAnchorDown(e, this.props.mark, false) + } + /> + </> + )} </> ); } |