storm-modal-gallery
Advanced tools
Comparing version 1.3.4 to 1.3.5
/** | ||
* @name storm-modal-gallery: Modal gallery/lightbox | ||
* @version 1.3.3: Fri, 29 Jun 2018 12:26:47 GMT | ||
* @version 1.3.4: Wed, 01 Aug 2018 14:33:48 GMT | ||
* @author mjbp | ||
@@ -5,0 +5,0 @@ * @license MIT |
@@ -15,3 +15,3 @@ import { | ||
}, | ||
TRIGGER_EVENTS = [window.PointerEvent ? 'pointerdown' : 'ontouchstart' in window ? 'touchstart' : 'click', 'keydown' ]; | ||
TRIGGER_EVENTS = window.PointerEvent ? ['pointerdown', 'keydown'] : ['ontouchstart' in window ? 'touchstart' : 'click', 'keydown' ]; | ||
@@ -31,3 +31,3 @@ export default { | ||
item.trigger.addEventListener(ev, e => { | ||
if(e.keyCode && e.keyCode !== KEY_CODES.ENTER) return; | ||
if((e.keyCode && e.keyCode !== KEY_CODES.ENTER) || (e.which && e.which === 3)) return; | ||
e.preventDefault(); | ||
@@ -34,0 +34,0 @@ e.stopPropagation(); |
/** | ||
* @name storm-modal-gallery: Modal gallery/lightbox | ||
* @version 1.3.3: Fri, 29 Jun 2018 12:26:47 GMT | ||
* @version 1.3.4: Wed, 01 Aug 2018 14:33:48 GMT | ||
* @author mjbp | ||
@@ -64,3 +64,3 @@ * @license MIT | ||
}; | ||
var TRIGGER_EVENTS = [window.PointerEvent ? 'pointerdown' : 'ontouchstart' in window ? 'touchstart' : 'click', 'keydown']; | ||
var TRIGGER_EVENTS = window.PointerEvent ? ['pointerdown', 'keydown'] : ['ontouchstart' in window ? 'touchstart' : 'click', 'keydown']; | ||
@@ -86,3 +86,3 @@ var componentPrototype = { | ||
item$$1.trigger.addEventListener(ev, function (e) { | ||
if (e.keyCode && e.keyCode !== KEY_CODES.ENTER) return; | ||
if (e.keyCode && e.keyCode !== KEY_CODES.ENTER || e.which && e.which === 3) return; | ||
e.preventDefault(); | ||
@@ -89,0 +89,0 @@ e.stopPropagation(); |
{ | ||
"name": "storm-modal-gallery", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Modal gallery/lightbox", | ||
@@ -5,0 +5,0 @@ "author": "mjbp", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36046