fix: hack for Safari 14 not repainting Vimeo embed on entering fullscreen
This commit is contained in:
parent
b116e62f37
commit
45f7e20233
@ -356,6 +356,11 @@ class Listeners {
|
|||||||
// Set Vimeo gutter
|
// Set Vimeo gutter
|
||||||
setGutter(ratio, padding, isEnter);
|
setGutter(ratio, padding, isEnter);
|
||||||
|
|
||||||
|
// Horrible hack for Safari 14 not repainting properly on entering fullscreen
|
||||||
|
if (isEnter) {
|
||||||
|
setTimeout(() => repaint(elements.container), 100);
|
||||||
|
}
|
||||||
|
|
||||||
// If not using native browser fullscreen API, we need to check for resizes of viewport
|
// If not using native browser fullscreen API, we need to check for resizes of viewport
|
||||||
if (!usingNative) {
|
if (!usingNative) {
|
||||||
if (isEnter) {
|
if (isEnter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user