Skip to content

Commit

Permalink
Merge branch 'pull/1077'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Dec 11, 2019
2 parents a594986 + 3825733 commit 1dfe424
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions resources/js/components/assets/Editor/FocalPointEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default {
x: 50,
y: 50,
z: 1,
reticleSize: 0,
imageDimensions: null,
}
},
Expand All @@ -85,14 +84,13 @@ export default {
},
watch: {
z(z) {
if (!this.imageDimensions) return 0;
computed: {
reticleSize() {
if (!this.imageDimensions || !this.z) return 0;
const smaller = Math.min(this.imageDimensions.w, this.imageDimensions.h);
this.reticleSize = smaller / z;
}
return smaller / this.z;
},
},
Expand Down

0 comments on commit 1dfe424

Please sign in to comment.