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.4.6 to 3.4.7

13

es/ScrollBar.js

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

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