re-resizable
Advanced tools
Comparing version 6.5.1 to 6.5.2
@@ -25,2 +25,9 @@ # Changelog | ||
## [6.5.1 (2020-06-25)](https://github.com/bokuweb/re-resizable/compare/v6.5.0...v6.5.1) | ||
### :bug: Bug Fix | ||
- Make `as` optional | ||
## [6.5.0 (2020-06-17)](https://github.com/bokuweb/re-resizable/compare/v6.4.0...v6.5.0) | ||
@@ -27,0 +34,0 @@ |
@@ -425,3 +425,6 @@ 'use strict'; | ||
this.window.addEventListener('mouseleave', this.onMouseUp); | ||
this.window.addEventListener('touchmove', this.onMouseMove); | ||
this.window.addEventListener('touchmove', this.onMouseMove, { | ||
capture: true, | ||
passive: false, | ||
}); | ||
this.window.addEventListener('touchend', this.onMouseUp); | ||
@@ -435,3 +438,3 @@ } | ||
this.window.removeEventListener('mouseleave', this.onMouseUp); | ||
this.window.removeEventListener('touchmove', this.onMouseMove); | ||
this.window.removeEventListener('touchmove', this.onMouseMove, true); | ||
this.window.removeEventListener('touchend', this.onMouseUp); | ||
@@ -674,2 +677,11 @@ } | ||
} | ||
if (event instanceof TouchEvent) { | ||
try { | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
} | ||
catch (e) { | ||
// Ignore on fail | ||
} | ||
} | ||
var _a = this.props, maxWidth = _a.maxWidth, maxHeight = _a.maxHeight, minWidth = _a.minWidth, minHeight = _a.minHeight; | ||
@@ -676,0 +688,0 @@ var clientX = event instanceof this.window.MouseEvent ? event.clientX : event.touches[0].clientX; |
@@ -323,3 +323,6 @@ var __extends = (this && this.__extends) || (function () { | ||
this.window.addEventListener('mouseleave', this.onMouseUp); | ||
this.window.addEventListener('touchmove', this.onMouseMove); | ||
this.window.addEventListener('touchmove', this.onMouseMove, { | ||
capture: true, | ||
passive: false, | ||
}); | ||
this.window.addEventListener('touchend', this.onMouseUp); | ||
@@ -333,3 +336,3 @@ } | ||
this.window.removeEventListener('mouseleave', this.onMouseUp); | ||
this.window.removeEventListener('touchmove', this.onMouseMove); | ||
this.window.removeEventListener('touchmove', this.onMouseMove, true); | ||
this.window.removeEventListener('touchend', this.onMouseUp); | ||
@@ -572,2 +575,11 @@ } | ||
} | ||
if (event instanceof TouchEvent) { | ||
try { | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
} | ||
catch (e) { | ||
// Ignore on fail | ||
} | ||
} | ||
var _a = this.props, maxWidth = _a.maxWidth, maxHeight = _a.maxHeight, minWidth = _a.minWidth, minHeight = _a.minHeight; | ||
@@ -574,0 +586,0 @@ var clientX = event instanceof this.window.MouseEvent ? event.clientX : event.touches[0].clientX; |
{ | ||
"name": "re-resizable", | ||
"version": "6.5.1", | ||
"version": "6.5.2", | ||
"description": "Resizable component for React.", | ||
@@ -91,3 +91,3 @@ "title": "re-resizable", | ||
"tslint-plugin-prettier": "2.3.0", | ||
"typescript": "3.9.5" | ||
"typescript": "3.9.6" | ||
}, | ||
@@ -94,0 +94,0 @@ "typings": "./lib/index.d.ts", |
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
179182
2912