diff --git a/src/photoswipe.css b/src/photoswipe.css index 686dfc36..5c32d80a 100644 --- a/src/photoswipe.css +++ b/src/photoswipe.css @@ -277,6 +277,9 @@ div.pswp__img--placeholder, pointer-events: none !important; } .pswp__top-bar > * { + pointer-events: none; +} +.pswp--ui-visible .pswp__top-bar > * { pointer-events: auto; /* this makes transition significantly more smooth, even though inner elements are not animated */