aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonikahedman <monika_hedman@brown.edu>2019-07-17 12:40:38 -0400
committermonikahedman <monika_hedman@brown.edu>2019-07-17 12:40:38 -0400
commit4788eddb018ce764c7152e4d39149ee7a7e3aa73 (patch)
treea706aa79f6da1044e4b09c741e46397b5fce965a
parentea2d62ba92aaae8e08c72a13d21728073534dd3f (diff)
pushing
-rw-r--r--src/client/views/ContextMenu.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/views/ContextMenu.tsx b/src/client/views/ContextMenu.tsx
index c163c56a0..e68e5c73f 100644
--- a/src/client/views/ContextMenu.tsx
+++ b/src/client/views/ContextMenu.tsx
@@ -27,12 +27,18 @@ export class ContextMenu extends React.Component {
@observable private _width: number = 0;
@observable private _height: number = 0;
+ @observable private _mouseDown: boolean = false;
+
constructor(props: Readonly<{}>) {
super(props);
ContextMenu.Instance = this;
}
+ componentDidMount = () => {
+
+ }
+
@action
clearItems() {
this._items = [];
@@ -79,6 +85,8 @@ export class ContextMenu extends React.Component {
//maxX and maxY will change if the UI/font size changes, but will work for any amount
//of items added to the menu
+ console.log("opening?")
+
this._pageX = x;
this._pageY = y;