diff --git a/grid-n-view.js b/grid-n-view.js
index 99ac9f7..3799250 100644
--- a/grid-n-view.js
+++ b/grid-n-view.js
@@ -143,6 +143,7 @@ var keyboard = {
var Gallery = {
allow_row_expansion: true,
+ click_to_select: true,
code: `
@@ -405,8 +406,15 @@ var Gallery = {
.addEventListener('click', function(evt){
var target = evt.target
if(target.tagName == 'IMG'){
- that.current = target
- that.show() } })
+ // first click selects, second shows...
+ if(that.click_to_select){
+ target.classList.contains('current') ?
+ that.show()
+ : (that.current = target)
+ // first click selects and shows...
+ } else {
+ that.current = target
+ that.show() } } })
// handle resizing...
new ResizeObserver(