From 828ded6b29ee3622302aac279d0886eed92ccdd2 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 27 Oct 2019 16:48:05 +0100 Subject: [PATCH] Fix overly aggressive forced player refreshes --- src/ext/lib/video-data/VideoData.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ext/lib/video-data/VideoData.js b/src/ext/lib/video-data/VideoData.js index 8fbebd9..3ec36cc 100644 --- a/src/ext/lib/video-data/VideoData.js +++ b/src/ext/lib/video-data/VideoData.js @@ -137,8 +137,9 @@ class VideoData { const pw = +(pcs.width.split('px')[0]); // TODO: check & account for panning and alignment - if (this.isWithin(vh, (ph - (translateY / 2)), 2) - && this.isWithin(vw, (pw - (translateX / 2)), 2)) { + if (transformMatrix[0] !== 'none' + && this.isWithin(vh, (ph - (translateY * 2)), 2) + && this.isWithin(vw, (pw - (translateX * 2)), 2)) { } else { this.player.forceRefreshPlayerElement(); this.restoreAr();