Skip to content
Snippets Groups Projects
Commit e8f4f65d authored by Jake Bartles's avatar Jake Bartles
Browse files

checking for right click instead of left click now

parent a453cc9c
No related branches found
No related tags found
No related merge requests found
......@@ -179,15 +179,16 @@ class Stage extends React.Component {
this.updateRect();
const {x, y} = getEventXY(e);
const mousePosition = [x - this.rect.left, y - this.rect.top];
this.setState({
mouseDown: true,
mouseDownPosition: mousePosition,
mouseDownTimeoutId: setTimeout(
this.onStartDrag.bind(this, mousePosition[0], mousePosition[1]),
500
)
});
if (e.which !== 3) {
this.setState({
mouseDown: true,
mouseDownPosition: mousePosition,
mouseDownTimeoutId: setTimeout(
this.onStartDrag.bind(this, mousePosition[0], mousePosition[1]),
500
)
});
}
const data = {
isDown: true,
x: mousePosition[0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment