From 7155e6074e766392a31b9bd4daded85c6a8a80a1 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Sun, 17 Jan 2016 00:01:26 +0100 Subject: rebuild dist and demo --- demo/LightBox.Core.js | 8 ++++- demo/index.html | 85 ++++++++++++++++++++++++++------------------------- 2 files changed, 50 insertions(+), 43 deletions(-) (limited to 'demo') diff --git a/demo/LightBox.Core.js b/demo/LightBox.Core.js index cd7898b..f3f369b 100644 --- a/demo/LightBox.Core.js +++ b/demo/LightBox.Core.js @@ -188,7 +188,13 @@ var LightBox = LightBox || {}; LightBox["Core"] = key: 'onImageClick', value: function onImageClick(event) { log.debug(event); - var element = event.srcElement.parentElement; + var srcElement = event.srcElement; + + if (srcElement === undefined) { + srcElement = event.originalTarget; + } + + var element = srcElement.parentElement; if (!this.isTargetValid(element)) return true; event.preventDefault(); diff --git a/demo/index.html b/demo/index.html index d1e167c..34be1c2 100644 --- a/demo/index.html +++ b/demo/index.html @@ -19,6 +19,7 @@

Image LightboxResponsive & Touch-Friendly

View source of demos on Github.

+

Fair waring to mobile users, big image are can be up to about 5MB each.

@@ -26,20 +27,20 @@

Core

@@ -48,20 +49,20 @@

With activity indication

@@ -70,20 +71,20 @@

With overlay & activity indication

@@ -92,20 +93,20 @@

With "close" button & activity indication

@@ -114,20 +115,20 @@

With caption & activity indication

@@ -136,20 +137,20 @@

With navigation & activity indication

@@ -158,20 +159,20 @@

Combination

-- cgit v1.2.3