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:
Vedanshu Jain 2022-01-10 20:28:47 +05:30 committed by GitHub
commit 658e28fff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);