rc-virtual-list
Advanced tools
Comparing version 3.5.2 to 3.5.3
@@ -60,8 +60,5 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
_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); | ||
if (_this.thumbRef.current) { | ||
_this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown); | ||
_this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove); | ||
@@ -168,3 +165,6 @@ _this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp); | ||
value: function componentWillUnmount() { | ||
var _this$scrollbarRef$cu, _this$thumbRef$curren; | ||
this.removeEvents(); | ||
(_this$scrollbarRef$cu = this.scrollbarRef.current) === null || _this$scrollbarRef$cu === void 0 ? void 0 : _this$scrollbarRef$cu.removeEventListener('touchstart', this.onScrollbarTouchStart); | ||
(_this$thumbRef$curren = this.thumbRef.current) === null || _this$thumbRef$curren === void 0 ? void 0 : _this$thumbRef$curren.removeEventListener('touchstart', this.onMouseDown); | ||
clearTimeout(this.visibleTimeout); | ||
@@ -171,0 +171,0 @@ } |
@@ -68,8 +68,5 @@ "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); | ||
if (_this.thumbRef.current) { | ||
_this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown); | ||
_this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove); | ||
@@ -176,3 +173,6 @@ _this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp); | ||
value: function componentWillUnmount() { | ||
var _this$scrollbarRef$cu, _this$thumbRef$curren; | ||
this.removeEvents(); | ||
(_this$scrollbarRef$cu = this.scrollbarRef.current) === null || _this$scrollbarRef$cu === void 0 ? void 0 : _this$scrollbarRef$cu.removeEventListener('touchstart', this.onScrollbarTouchStart); | ||
(_this$thumbRef$curren = this.thumbRef.current) === null || _this$thumbRef$curren === void 0 ? void 0 : _this$thumbRef$curren.removeEventListener('touchstart', this.onMouseDown); | ||
clearTimeout(this.visibleTimeout); | ||
@@ -179,0 +179,0 @@ } |
{ | ||
"name": "rc-virtual-list", | ||
"version": "3.5.2", | ||
"version": "3.5.3", | ||
"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
99614