This commit is contained in:
Tamius Han 2021-11-25 22:16:48 +01:00
parent c34340d0d1
commit 761f2c21a8
2 changed files with 8 additions and 7 deletions

View File

@ -231,7 +231,6 @@ class VideoData {
*/ */
preparePage() { preparePage() {
this.injectBaseCss(); this.injectBaseCss();
this.pageInfo.initMouseActionHandler(this); this.pageInfo.initMouseActionHandler(this);
// aspect ratio autodetection cannot be properly initialized at this time, // aspect ratio autodetection cannot be properly initialized at this time,
@ -364,8 +363,7 @@ class VideoData {
if (!options?.fromPlayer) { if (!options?.fromPlayer) {
this.player?.enable(); this.player?.enable();
} }
// this.restoreCrop();
this.restoreCrop();
} }
/** /**
@ -403,6 +401,7 @@ class VideoData {
this.logger.log('info', 'debug', '[VideoData::restoreCrop] Attempting to reset aspect ratio.') this.logger.log('info', 'debug', '[VideoData::restoreCrop] Attempting to reset aspect ratio.')
// if we have default crop set for this page, apply this. // if we have default crop set for this page, apply this.
// otherwise, reset crop // otherwise, reset crop
if (this.pageInfo.defaultCrop) { if (this.pageInfo.defaultCrop) {
this.resizer.setAr(this.pageInfo.defaultCrop); this.resizer.setAr(this.pageInfo.defaultCrop);
} else { } else {
@ -554,8 +553,8 @@ class VideoData {
&& this.isWithin(vh, (ph - (translateY * 2)), 2) && this.isWithin(vh, (ph - (translateY * 2)), 2)
&& this.isWithin(vw, (pw - (translateX * 2)), 2)) { && this.isWithin(vw, (pw - (translateX * 2)), 2)) {
} else { } else {
this.player.forceRefreshPlayerElement(); // this.player.forceRefreshPlayerElement();
this.restoreAr(); // this.restoreAr();
} }
} catch(e) { } catch(e) {

View File

@ -1,6 +1,8 @@
@import "colors.scss"; @import "colors.scss";
@import "fonts.scss"; @import "fonts.scss";
@import "flex.scss"; @import "flex.scss";
// @import "~/@mdi/font/css/materialdesignicons.css";
// @import "form.scss"; // @import "form.scss";
body { body {