Fix overly aggressive forced player refreshes

This commit is contained in:
Tamius Han 2019-10-27 16:48:05 +01:00
parent f05a0813d2
commit 828ded6b29

View File

@ -137,8 +137,9 @@ class VideoData {
const pw = +(pcs.width.split('px')[0]); const pw = +(pcs.width.split('px')[0]);
// TODO: check & account for panning and alignment // TODO: check & account for panning and alignment
if (this.isWithin(vh, (ph - (translateY / 2)), 2) if (transformMatrix[0] !== 'none'
&& this.isWithin(vw, (pw - (translateX / 2)), 2)) { && this.isWithin(vh, (ph - (translateY * 2)), 2)
&& this.isWithin(vw, (pw - (translateX * 2)), 2)) {
} else { } else {
this.player.forceRefreshPlayerElement(); this.player.forceRefreshPlayerElement();
this.restoreAr(); this.restoreAr();