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

@behance/lightbox

Package Overview
Dependencies
Maintainers
42
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@behance/lightbox - npm Package Compare versions

Comparing version 9.1.1 to 9.1.2

test/.eslintrc

7

package.json
{
"name": "@behance/lightbox",
"version": "9.1.1",
"version": "9.1.2",
"description": "Image lightbox",
"main": "src",
"scripts": {
"test": "npm run eslint && npm run karma -- --single-run",
"eslint": "eslint src/**/*.js test/**/*.js",
"karma": "env NODE_ENV=test karma start test/karma.conf.js",
"eslint:fix": "npm run eslint -- --fix",
"test": "npm run eslint && npm run test:dev -- --single-run",
"test:dev": "env NODE_ENV=test karma start test/karma.conf.js",
"examples-simple": "webpack-dev-server --content-base examples/simple --config ./test/webpack.config.js --entry ./examples/simple"

@@ -11,0 +12,0 @@ },

@@ -50,4 +50,10 @@ import 'style-loader!../sass/lightbox.scss';

this._touch = touchwipe(this._$view[0], {
wipeLeft: e => act('next', e),
wipeRight: e => act('prev', e)
wipeLeft: e => {
if ($html.hasClass(ZOOMED_CLASS)) { return; }
act('next', e);
},
wipeRight: e => {
if ($html.hasClass(ZOOMED_CLASS)) { return; }
act('prev', e);
}
});

@@ -59,5 +65,3 @@

.on('click.lightbox', '.js-close', (e) => act('close', e))
.on('click.lightbox', `.${JS_SLIDE_CONTENT_CLASS}.${ZOOMABLE_CLASS}`, () => {
$html.toggleClass(ZOOMED_CLASS);
});
.on('click.lightbox', `.${JS_SLIDE_CONTENT_CLASS}.${ZOOMABLE_CLASS}`, () => $html.toggleClass(ZOOMED_CLASS));

@@ -64,0 +68,0 @@ $(document)

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