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() {
this.injectBaseCss();
this.pageInfo.initMouseActionHandler(this);
// aspect ratio autodetection cannot be properly initialized at this time,
@ -364,8 +363,7 @@ class VideoData {
if (!options?.fromPlayer) {
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.')
// if we have default crop set for this page, apply this.
// otherwise, reset crop
if (this.pageInfo.defaultCrop) {
this.resizer.setAr(this.pageInfo.defaultCrop);
} else {
@ -554,8 +553,8 @@ class VideoData {
&& this.isWithin(vh, (ph - (translateY * 2)), 2)
&& this.isWithin(vw, (pw - (translateX * 2)), 2)) {
} else {
this.player.forceRefreshPlayerElement();
this.restoreAr();
// this.player.forceRefreshPlayerElement();
// this.restoreAr();
}
} catch(e) {

View File

@ -1,6 +1,8 @@
@import "colors.scss";
@import "fonts.scss";
@import "flex.scss";
// @import "~/@mdi/font/css/materialdesignicons.css";
// @import "form.scss";
body {
@ -239,7 +241,7 @@ body {
user-select: none;;
}
.selected, .setting-selected {
color: $selected-color !important;
background-color: $background-selected !important;
@ -266,7 +268,7 @@ body {
.disabled-button {
color: #666 !important;
cursor: not-allowed !important;
cursor: not-allowed !important;
}
.disabled-button:hover {