@behance/lightbox
Advanced tools
Comparing version 9.1.1 to 9.1.2
{ | ||
"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) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
61298
30
925