Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storm-modal-gallery

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storm-modal-gallery - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

2

dist/index.js
/**
* @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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc