video: remove transition change
parent
65c0b27f37
commit
f0fdaa7c0a
|
@ -99,15 +99,6 @@ class VideoContentSetup {
|
||||||
|
|
||||||
pswp.on("close", () => {
|
pswp.on("close", () => {
|
||||||
if (isVideoContent(pswp.currSlide.content)) {
|
if (isVideoContent(pswp.currSlide.content)) {
|
||||||
// Switch from zoom to fade closing transition,
|
|
||||||
// as zoom transition is choppy for videos
|
|
||||||
if (
|
|
||||||
!pswp.options.showHideAnimationType ||
|
|
||||||
pswp.options.showHideAnimationType === "zoom"
|
|
||||||
) {
|
|
||||||
pswp.options.showHideAnimationType = "fade";
|
|
||||||
}
|
|
||||||
|
|
||||||
// prevent more requests
|
// prevent more requests
|
||||||
this.destroyVideo(pswp.currSlide.content);
|
this.destroyVideo(pswp.currSlide.content);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue