aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-06 04:09:32 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-06 04:09:32 -0400
commitb680f3db2f9fb6dc65f47848234e96453ef60a5c (patch)
treeb199d2ebac89e642c8f63a520e8587a2efede94b /src
parent97f750f4897dfd404ffd38bd8205092273f457fc (diff)
Removed prepareDrag
Diffstat (limited to 'src')
-rw-r--r--src/client/views/Main.tsx11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index a324421ac..237eb3b6e 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -235,15 +235,6 @@ export class Main extends React.Component {
ContainingCollectionView={undefined} />
}
- @undoBatch
- @action
- prepareDrag = (
- _reference: React.RefObject<HTMLDivElement>,
- docFunc: () => Document,
- removeFunc: (containingCollection: CollectionView) => void = () => { }) => {
- return setupDrag(_reference, docFunc, removeFunc);
- }
-
/* for the expandable add nodes menu. Not included with the miscbuttons because once it expands it expands the whole div with it, making canvas interactions limited. */
@computed
get nodesMenu() {
@@ -283,7 +274,7 @@ export class Main extends React.Component {
<ul id="add-options-list">
{btns.map(btn =>
<li key={btn[1]} ><div ref={btn[0]}>
- <button className="round-button add-button" title={btn[2]} onPointerDown={this.prepareDrag(btn[0], btn[3])}>
+ <button className="round-button add-button" title={btn[2]} onPointerDown={setupDrag(btn[0], btn[3])}>
<FontAwesomeIcon icon={btn[1]} size="sm" />
</button>
</div></li>)}