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.4 to 3.4.6

4

es/hooks/useMobileTouchMove.js

@@ -66,3 +66,5 @@ import { useRef } from 'react';

return function () {
listRef.current.removeEventListener('touchstart', onTouchStart);
var _listRef$current;
(_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.removeEventListener('touchstart', onTouchStart);
cleanUpEvents();

@@ -69,0 +71,0 @@ clearInterval(intervalRef.current);

@@ -288,5 +288,7 @@ var _excluded = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "component", "onScroll", "onVisibleChange"];

return function () {
componentRef.current.removeEventListener('wheel', onRawWheel);
componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll);
componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll);
if (componentRef.current) {
componentRef.current.removeEventListener('wheel', onRawWheel);
componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll);
componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll);
}
};

@@ -293,0 +295,0 @@ }, [useVirtual]); // ================================= Ref ==================================

@@ -78,3 +78,5 @@ "use strict";

return function () {
listRef.current.removeEventListener('touchstart', onTouchStart);
var _listRef$current;
(_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.removeEventListener('touchstart', onTouchStart);
cleanUpEvents();

@@ -81,0 +83,0 @@ clearInterval(intervalRef.current);

@@ -316,5 +316,7 @@ "use strict";

return function () {
componentRef.current.removeEventListener('wheel', onRawWheel);
componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll);
componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll);
if (componentRef.current) {
componentRef.current.removeEventListener('wheel', onRawWheel);
componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll);
componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll);
}
};

@@ -321,0 +323,0 @@ }, [useVirtual]); // ================================= Ref ==================================

{
"name": "rc-virtual-list",
"version": "3.4.4",
"version": "3.4.6",
"description": "React Virtual List Component",

@@ -68,4 +68,4 @@ "engines": {

"rc-resize-observer": "^1.0.0",
"rc-util": "^5.0.7"
"rc-util": "^5.15.0"
}
}
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