Fixed the propagation of the background event to its children.

main
Nicolas Ong 2025-07-20 16:02:58 +02:00
parent dcc01568a6
commit 1fcbc35d81
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@ function pop(event) {
}
function unpop(event) {
if (event.target.id == 'prev' || event.target.id == 'next' || event.target.nodeName == 'IMG') {
return;
}
var viewer = document.getElementById('viewer');
viewer.classList.add('hidden');
if (viewer.lastChild.nodeName == 'IMG') {