Skip to content

Commit

Permalink
Revert "Stop oversampling in editor for full page shots. (mozilla-ser…
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Brunner authored Jun 7, 2018
1 parent 38be05b commit 0f81bdd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/src/pages/shot/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ class Selection {
exports.Editor = class Editor extends React.Component {
constructor(props) {
super(props);
this.devicePixelRatio = window.devicePixelRatio;
if (props.clip.image.captureType === "fullPage"
|| props.clip.image.captureType === "fullPageTruncated") {
this.devicePixelRatio = 1;
}
this.devicePixelRatio = window.devicePixelRatio || 1;
this.mousedown = this.mousedown.bind(this);
this.mouseup = this.mouseup.bind(this);
this.mousemove = this.mousemove.bind(this);
Expand Down

0 comments on commit 0f81bdd

Please sign in to comment.