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

@lani.ground/react-image-viewer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lani.ground/react-image-viewer - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

10

dist/cjs/components/Viewer.js

@@ -159,8 +159,6 @@ "use strict";

(0, react_1.useEffect)(function () {
var preventZoom = function (e) {
if (e.touches.length > 1) {
e.preventDefault();
}
var cancelEvent = function (e) {
e.preventDefault();
};
document.addEventListener('touchmove', preventZoom, {
document.addEventListener('touchmove', cancelEvent, {
passive: false,

@@ -170,3 +168,3 @@ });

return function () {
document.removeEventListener('touchmove', preventZoom);
document.removeEventListener('touchmove', cancelEvent);
unlockScroll();

@@ -173,0 +171,0 @@ };

@@ -154,8 +154,6 @@ var __assign = (this && this.__assign) || function () {

useEffect(function () {
var preventZoom = function (e) {
if (e.touches.length > 1) {
e.preventDefault();
}
var cancelEvent = function (e) {
e.preventDefault();
};
document.addEventListener('touchmove', preventZoom, {
document.addEventListener('touchmove', cancelEvent, {
passive: false,

@@ -165,3 +163,3 @@ });

return function () {
document.removeEventListener('touchmove', preventZoom);
document.removeEventListener('touchmove', cancelEvent);
unlockScroll();

@@ -168,0 +166,0 @@ };

4

package.json
{
"name": "@lani.ground/react-image-viewer",
"description": "A React component for viewing images in a modal",
"version": "1.0.7",
"version": "1.0.8",
"license": "MIT",

@@ -80,3 +80,3 @@ "keywords": [

},
"gitHead": "4b223121d27a813a98864c47013e4b856b0b6e1a"
"gitHead": "038ea842e9786af11d051acc0fd8f4b5ec8f75c1"
}

Sorry, the diff of this file is not supported yet

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