aboutsummaryrefslogtreecommitdiff
path: root/src/client/northstar/dash-nodes/HistogramBox.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-01 17:05:42 -0400
committerbob <bcz@cs.brown.edu>2019-04-01 17:05:42 -0400
commit8448679e0a260ec881c54a10578bc464cd38f04e (patch)
tree8e45123d69ac834c4a9d0333c118586282540a08 /src/client/northstar/dash-nodes/HistogramBox.tsx
parenta687a9962c8952074177e52366b69dcce231a18e (diff)
added dragging multiple items.
Diffstat (limited to 'src/client/northstar/dash-nodes/HistogramBox.tsx')
-rw-r--r--src/client/northstar/dash-nodes/HistogramBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/northstar/dash-nodes/HistogramBox.tsx b/src/client/northstar/dash-nodes/HistogramBox.tsx
index a968def96..49ebe5ebc 100644
--- a/src/client/northstar/dash-nodes/HistogramBox.tsx
+++ b/src/client/northstar/dash-nodes/HistogramBox.tsx
@@ -54,7 +54,7 @@ export class HistogramBox extends React.Component<FieldViewProps> {
@action
dropX = (e: Event, de: DragManager.DropEvent) => {
if (de.data instanceof DragManager.DocumentDragData) {
- let h = de.data.draggedDocument.GetT(KeyStore.Data, HistogramField);
+ let h = de.data.draggedDocuments[0].GetT(KeyStore.Data, HistogramField);
if (h && h != FieldWaiting) {
this.HistoOp.X = h.Data.X;
}
@@ -65,7 +65,7 @@ export class HistogramBox extends React.Component<FieldViewProps> {
@action
dropY = (e: Event, de: DragManager.DropEvent) => {
if (de.data instanceof DragManager.DocumentDragData) {
- let h = de.data.draggedDocument.GetT(KeyStore.Data, HistogramField);
+ let h = de.data.draggedDocuments[0].GetT(KeyStore.Data, HistogramField);
if (h && h != FieldWaiting) {
this.HistoOp.Y = h.Data.X;
}