Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-virtual-list

Package Overview
Dependencies
Maintainers
2
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-virtual-list - npm Package Compare versions

Comparing version 3.5.2 to 3.5.3

6

es/ScrollBar.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc