rc-virtual-list
Advanced tools
Comparing version 3.4.6 to 3.4.7
@@ -93,13 +93,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
_this.removeEvents = function () { | ||
var _this$scrollbarRef$cu; | ||
window.removeEventListener('mousemove', _this.onMouseMove); | ||
window.removeEventListener('mouseup', _this.onMouseUp); | ||
(_this$scrollbarRef$cu = _this.scrollbarRef.current) === null || _this$scrollbarRef$cu === void 0 ? void 0 : _this$scrollbarRef$cu.removeEventListener('touchstart', _this.onScrollbarTouchStart); | ||
_this.scrollbarRef.current.removeEventListener('touchstart', _this.onScrollbarTouchStart); | ||
if (_this.thumbRef.current) { | ||
_this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown); | ||
_this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown); | ||
_this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove); | ||
_this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove); | ||
_this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp); | ||
} | ||
_this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp); | ||
raf.cancel(_this.moveRaf); | ||
@@ -106,0 +109,0 @@ }; |
@@ -109,13 +109,16 @@ "use strict"; | ||
_this.removeEvents = function () { | ||
var _this$scrollbarRef$cu; | ||
window.removeEventListener('mousemove', _this.onMouseMove); | ||
window.removeEventListener('mouseup', _this.onMouseUp); | ||
(_this$scrollbarRef$cu = _this.scrollbarRef.current) === null || _this$scrollbarRef$cu === void 0 ? void 0 : _this$scrollbarRef$cu.removeEventListener('touchstart', _this.onScrollbarTouchStart); | ||
_this.scrollbarRef.current.removeEventListener('touchstart', _this.onScrollbarTouchStart); | ||
if (_this.thumbRef.current) { | ||
_this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown); | ||
_this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown); | ||
_this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove); | ||
_this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove); | ||
_this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp); | ||
} | ||
_this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp); | ||
_raf.default.cancel(_this.moveRaf); | ||
@@ -122,0 +125,0 @@ }; |
{ | ||
"name": "rc-virtual-list", | ||
"version": "3.4.6", | ||
"version": "3.4.7", | ||
"description": "React Virtual List Component", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
132717
2526
0
0