Lightbox: A number of tweaks

This commit is contained in:
Scott Nonnenberg
2021-09-07 09:12:26 -07:00
committed by GitHub
parent 82f1920ce2
commit c6278aa173
5 changed files with 85 additions and 47 deletions

View File

@@ -473,7 +473,7 @@ try {
);
const link = e.target.closest('a');
const selection = Boolean(window.getSelection().toString());
const image = e.target.closest('.module-lightbox img');
const image = e.target.closest('.Lightbox img');
if (!editable && !selection && !link && !image) {
e.preventDefault();
}