aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-01-29 22:19:35 -0500
committerbobzel <zzzman@gmail.com>2021-01-29 22:19:35 -0500
commit41bb365dd4f787aec2262dcb07508e0de3837e10 (patch)
tree7f1a90a46daaa71b4cf3d8df5f6faaddd5e572eb /src
parenta695e0dd4e2541d6e093e41b88fdd41a32ebadb1 (diff)
fixed dragging on timeline to create anchor
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionStackedTimeline.scss1
-rw-r--r--src/client/views/collections/CollectionStackedTimeline.tsx5
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.scss b/src/client/views/collections/CollectionStackedTimeline.scss
index 9d1b46f27..cc56831f3 100644
--- a/src/client/views/collections/CollectionStackedTimeline.scss
+++ b/src/client/views/collections/CollectionStackedTimeline.scss
@@ -36,7 +36,6 @@
top: 2.5%;
height: 95%;
border-radius: 4px;
- opacity: 0.3;
&:hover {
opacity: 1;
}
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx
index a59ac109f..d4eb66fcc 100644
--- a/src/client/views/collections/CollectionStackedTimeline.tsx
+++ b/src/client/views/collections/CollectionStackedTimeline.tsx
@@ -135,8 +135,9 @@ export class CollectionStackedTimeline extends CollectionSubView<PanZoomDocument
this._markerStart = this._markerEnd;
this._markerEnd = tmp;
}
- if (!isClick) {
- CollectionStackedTimeline.SelectingRegion === this && (Math.abs(movement[0]) > 15) && CollectionStackedTimeline.createAnchor(this.rootDoc, this.dataDoc, this.props.fieldKey, this.props.startTag, this.props.endTag);
+ if (!isClick && CollectionStackedTimeline.SelectingRegion === this && (Math.abs(movement[0]) > 15)) {
+ CollectionStackedTimeline.createAnchor(this.rootDoc, this.dataDoc, this.props.fieldKey, this.props.startTag, this.props.endTag,
+ this._markerStart, this._markerEnd);
}
(!isClick || !wasSelecting) && (CollectionStackedTimeline.SelectingRegion = undefined);
}),