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

react-prismazoom

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-prismazoom - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

3

CHANGELOG.md
# Changelog
## [3.1.1] - 2022-11-20
- Bump some dependencies
## [3.1.0] - 2022-09-25

@@ -4,0 +7,0 @@ - Added prop to allow parent movement (thanks SaadTaimoor-TFD)

12

dist/index.js

@@ -649,3 +649,4 @@ "use strict";

style = _this$props4.style,
children = _this$props4.children;
children = _this$props4.children,
allowParentPanning = _this$props4.allowParentPanning;
var _this$state6 = this.state,

@@ -665,3 +666,3 @@ zoom = _this$state6.zoom,

cursor: cursor,
touchAction: 'none',
touchAction: allowParentPanning && zoom === 1 ? 'pan-x pan-y' : 'none',
willChange: 'transform'

@@ -691,3 +692,4 @@ })

allowPan: _propTypes.default.bool,
allowTouchEvents: _propTypes.default.bool
allowTouchEvents: _propTypes.default.bool,
allowParentPanning: _propTypes.default.bool
});

@@ -720,3 +722,5 @@ (0, _defineProperty2.default)(PrismaZoom, "defaultProps", {

// By default, all touch events are caught (if set to true touch events propagate)
allowTouchEvents: false
allowTouchEvents: false,
// By default, page cannot scroll with touch events
allowParentPanning: false
});

@@ -723,0 +727,0 @@ (0, _defineProperty2.default)(PrismaZoom, "defaultState", {

{
"name": "react-prismazoom",
"version": "3.1.0",
"version": "3.1.1",
"description": "A pan and zoom component for React, using CSS transformations.",

@@ -5,0 +5,0 @@ "author": "Sylvain DUBUS <svn.dbs@gmail.com>",

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