Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Stop oversampling in editor for full page shots. (#4268) (#4360)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba authored and jaredhirsch committed Apr 25, 2018
1 parent 8208c0b commit 071ce5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/pages/shot/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ class Selection {
exports.Editor = class Editor extends React.Component {
constructor(props) {
super(props);
this.devicePixelRatio = window.devicePixelRatio || 1;
this.devicePixelRatio = window.devicePixelRatio;
if (props.clip.image.captureType === "fullPage"
|| props.clip.image.captureType === "fullPageTruncated") {
this.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 071ce5e

Please sign in to comment.