react-prismazoom
Advanced tools
Comparing version 3.1.0 to 3.1.1
# 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) |
@@ -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>", |
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
38139
619