@lani.ground/react-image-viewer
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -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' }); |
{ | ||
"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" | ||
} |
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
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
45099
813