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.1.2 to 1.1.3

12

dist/cjs/hooks/useScrollLock.js

@@ -23,7 +23,3 @@ "use strict";

modifyBodyStyle({
overflowY: 'hidden',
position: 'fixed',
top: "-".concat(scrollRef.current, "px"),
left: '0',
right: '0',
overflow: 'hidden',
});

@@ -37,7 +33,3 @@ };

modifyBodyStyle({
overflowY: '',
position: '',
top: '',
left: '',
right: '',
overflow: '',
});

@@ -44,0 +36,0 @@ window.scrollTo({ left: 0, top: scrollRef.current, behavior: 'instant' });

@@ -21,7 +21,3 @@ import { useCallback, useRef } from 'react';

modifyBodyStyle({
overflowY: 'hidden',
position: 'fixed',
top: "-".concat(scrollRef.current, "px"),
left: '0',
right: '0',
overflow: 'hidden',
});

@@ -35,7 +31,3 @@ };

modifyBodyStyle({
overflowY: '',
position: '',
top: '',
left: '',
right: '',
overflow: '',
});

@@ -42,0 +34,0 @@ window.scrollTo({ left: 0, top: scrollRef.current, behavior: 'instant' });

4

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

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

},
"gitHead": "5395c9afc1ba8152f81d52c83c324c3c79fbacdd"
"gitHead": "7838ca423416b35f1de679be0208d9535027a501"
}
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