minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-08-13 22:52:18 +03:00
parent 7d1c76cb71
commit 21f969a431

View File

@ -858,6 +858,11 @@ var Gallery = {
var that = this var that = this
this.dom = dom this.dom = dom
// prevent clicks in toolbar from affecting the gallery...
this.dom.querySelector('.toolbar')
.addEventListener('click', function(evt){
evt.stopPropagation() })
// image clicks...
this.dom.querySelector('.images') this.dom.querySelector('.images')
.addEventListener('click', function(evt){ .addEventListener('click', function(evt){
evt.stopPropagation() evt.stopPropagation()