fix #269
This commit is contained in:
parent
7d71dd0507
commit
a0abf336cf
@ -1984,7 +1984,7 @@ export class Aard {
|
|||||||
const fileAr = this.video.videoWidth / this.video.videoHeight;
|
const fileAr = this.video.videoWidth / this.video.videoHeight;
|
||||||
const canvasAr = this.canvasStore.main.width / this.canvasStore.main.height;
|
const canvasAr = this.canvasStore.main.width / this.canvasStore.main.height;
|
||||||
|
|
||||||
const compensatedWidth = fileAr === canvasAr ? this.canvasStore.main.width : this.canvasStore.main.width * fileAr;
|
const compensatedWidth = fileAr === canvasAr ? this.canvasStore.main.width : this.video.videoWidth * this.canvasStore.main.height / (this.video.videoHeight);
|
||||||
|
|
||||||
// console.log(`
|
// console.log(`
|
||||||
// ———— ASPECT RATIO CALCULATION: —————
|
// ———— ASPECT RATIO CALCULATION: —————
|
||||||
|
Loading…
Reference in New Issue
Block a user