rc-swipeout
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -30,2 +30,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
_this.onPanEnd = _this.onPanEnd.bind(_this); | ||
_this.onCloseSwipe = _this.onCloseSwipe.bind(_this); | ||
_this.openedLeft = false; | ||
@@ -52,3 +53,3 @@ _this.openedRight = false; | ||
this.btnsRightWidth = width / 5 * right.length; | ||
document.body.addEventListener('touchstart', this.onCloseSwipe.bind(this), true); | ||
document.body.addEventListener('touchstart', this.onCloseSwipe, true); | ||
} | ||
@@ -58,3 +59,3 @@ }, { | ||
value: function componentWillUnmount() { | ||
document.body.removeEventListener('touchstart', this.onCloseSwipe.bind(this)); | ||
document.body.removeEventListener('touchstart', this.onCloseSwipe); | ||
} | ||
@@ -61,0 +62,0 @@ }, { |
@@ -65,2 +65,3 @@ 'use strict'; | ||
_this.onPanEnd = _this.onPanEnd.bind(_this); | ||
_this.onCloseSwipe = _this.onCloseSwipe.bind(_this); | ||
_this.openedLeft = false; | ||
@@ -87,3 +88,3 @@ _this.openedRight = false; | ||
this.btnsRightWidth = width / 5 * right.length; | ||
document.body.addEventListener('touchstart', this.onCloseSwipe.bind(this), true); | ||
document.body.addEventListener('touchstart', this.onCloseSwipe, true); | ||
} | ||
@@ -93,3 +94,3 @@ }, { | ||
value: function componentWillUnmount() { | ||
document.body.removeEventListener('touchstart', this.onCloseSwipe.bind(this)); | ||
document.body.removeEventListener('touchstart', this.onCloseSwipe); | ||
} | ||
@@ -96,0 +97,0 @@ }, { |
{ | ||
"name": "rc-swipeout", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "swipe out ui component for react(web and react-native)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
43971
1015
0