Skip to content

Commit

Permalink
Revert "Prevent dragging of crop div. (mozilla-services#4456) (mozill…
Browse files Browse the repository at this point in the history
…a-services#4457)"

This reverts commit 9e1acd2.
  • Loading branch information
Moritz Brunner committed Jun 7, 2018
1 parent eed1145 commit a2da007
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/src/pages/shot/crop-tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ exports.CropTool = class CropTool extends React.Component {
const selectionBottomPx = `${this.state.cropSelection.bottom}px`;
const selectionHeightPx = `${this.state.cropSelection.height}px`;
const selectionWidthPx = `${this.state.cropSelection.width}px`;
const remainingRightSideWidthPx = `${this.canvasWidth - this.state.cropSelection.right}px`;
const oneHundredPercent = "100%";

const bgTopStyles = {
Expand All @@ -83,7 +82,7 @@ exports.CropTool = class CropTool extends React.Component {
top: selectionTopPx,
height: selectionHeightPx,
left: selectionRightPx,
width: remainingRightSideWidthPx
width: oneHundredPercent
};
const bgBottomStyles = {
top: selectionBottomPx,
Expand Down Expand Up @@ -187,7 +186,6 @@ exports.CropTool = class CropTool extends React.Component {

isMousedown = true;
mousedownPosition = this.captureMousePosition(e);
e.preventDefault();

if (!this.state.cropSelection) {
this.setState({selectionState: SelectionState.CREATING});
Expand Down

0 comments on commit a2da007

Please sign in to comment.