From 21f969a4313b938d3c716fcd1d20a0599a466ec4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 13 Aug 2023 22:52:18 +0300 Subject: [PATCH] minor tweak... Signed-off-by: Alex A. Naanou --- grid-n-view.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grid-n-view.js b/grid-n-view.js index 29c68f8..19ce51f 100644 --- a/grid-n-view.js +++ b/grid-n-view.js @@ -858,6 +858,11 @@ var Gallery = { var that = this 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') .addEventListener('click', function(evt){ evt.stopPropagation()