Merge pull request #31591 from woocommerce/fix/25458-photoswipe-close-mobile-trigger-bug
Fix PhotoSwipe lightbox "close" triggering elements covered by it on mobile
This commit is contained in:
commit
658e28fff2
|
@ -3230,7 +3230,7 @@ _registerModule('Tap', {
|
|||
return;
|
||||
}
|
||||
|
||||
if(!_moved && !_isMultitouch && !_numAnimations) {
|
||||
if(!_moved && !_isMultitouch && !_numAnimations && self.container.contains(e.target)) {
|
||||
var p0 = releasePoint;
|
||||
if(tapTimer) {
|
||||
clearTimeout(tapTimer);
|
||||
|
|
Loading…
Reference in New Issue