Socket
Socket
Sign inDemoInstall

rc-image

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-image - npm Package Compare versions

Comparing version 5.6.1 to 5.6.2

14

es/Preview.js

@@ -241,2 +241,15 @@ import _extends from "@babel/runtime/helpers/esm/extends";

}, [currentPreviewIndex, previewGroupCount, previewUrlsKeys, setCurrent, showLeftOrRightSwitches, visible]);
var onDoubleClick = function onDoubleClick() {
if (visible) {
if (scale !== 1) {
setScale(1);
}
if (position.x !== initialPosition.x || position.y !== initialPosition.y) {
setPosition(initialPosition);
}
}
};
useEffect(function () {

@@ -321,2 +334,3 @@ var wheelDirection = lastWheelZoomDirection.wheelDirection;

onMouseDown: onMouseDown,
onDoubleClick: onDoubleClick,
ref: imgRef,

@@ -323,0 +337,0 @@ className: "".concat(prefixCls, "-img"),

@@ -265,2 +265,15 @@ "use strict";

}, [currentPreviewIndex, previewGroupCount, previewUrlsKeys, setCurrent, showLeftOrRightSwitches, visible]);
var onDoubleClick = function onDoubleClick() {
if (visible) {
if (scale !== 1) {
setScale(1);
}
if (position.x !== initialPosition.x || position.y !== initialPosition.y) {
setPosition(initialPosition);
}
}
};
useEffect(function () {

@@ -345,2 +358,3 @@ var wheelDirection = lastWheelZoomDirection.wheelDirection;

onMouseDown: onMouseDown,
onDoubleClick: onDoubleClick,
ref: imgRef,

@@ -347,0 +361,0 @@ className: "".concat(prefixCls, "-img"),

2

package.json
{
"name": "rc-image",
"version": "5.6.1",
"version": "5.6.2",
"description": "React easy to use image component",

@@ -5,0 +5,0 @@ "keywords": [

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