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.11.0 to 3.11.1

14

es/ScrollBar.js

@@ -0,3 +1,3 @@

import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

@@ -171,7 +171,7 @@ import * as React from 'react';

var scrollbarPrefixCls = "".concat(prefixCls, "-scrollbar");
var containerStyle = _objectSpread({
var containerStyle = {
position: 'absolute',
visibility: visible && canScroll ? null : 'hidden'
}, style);
var thumbStyle = _objectSpread({
};
var thumbStyle = {
position: 'absolute',

@@ -182,3 +182,3 @@ background: 'rgba(0, 0, 0, 0.5)',

userSelect: 'none'
}, propsThumbStyle);
};
if (horizontal) {

@@ -216,3 +216,3 @@ // Container

className: classNames(scrollbarPrefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(scrollbarPrefixCls, "-horizontal"), horizontal), _defineProperty(_classNames, "".concat(scrollbarPrefixCls, "-vertical"), !horizontal), _defineProperty(_classNames, "".concat(scrollbarPrefixCls, "-visible"), visible), _classNames)),
style: containerStyle,
style: _objectSpread(_objectSpread({}, containerStyle), style),
onMouseDown: onContainerMouseDown,

@@ -223,3 +223,3 @@ onMouseMove: delayHidden

className: classNames("".concat(scrollbarPrefixCls, "-thumb"), _defineProperty({}, "".concat(scrollbarPrefixCls, "-thumb-moving"), dragging)),
style: thumbStyle,
style: _objectSpread(_objectSpread({}, thumbStyle), propsThumbStyle),
onMouseDown: onThumbMouseDown

@@ -226,0 +226,0 @@ }));

@@ -9,4 +9,4 @@ "use strict";

exports.default = void 0;
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));

@@ -180,7 +180,7 @@ var React = _interopRequireWildcard(require("react"));

var scrollbarPrefixCls = "".concat(prefixCls, "-scrollbar");
var containerStyle = (0, _objectSpread2.default)({
var containerStyle = {
position: 'absolute',
visibility: visible && canScroll ? null : 'hidden'
}, style);
var thumbStyle = (0, _objectSpread2.default)({
};
var thumbStyle = {
position: 'absolute',

@@ -191,3 +191,3 @@ background: 'rgba(0, 0, 0, 0.5)',

userSelect: 'none'
}, propsThumbStyle);
};
if (horizontal) {

@@ -225,3 +225,3 @@ // Container

className: (0, _classnames.default)(scrollbarPrefixCls, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(scrollbarPrefixCls, "-horizontal"), horizontal), (0, _defineProperty2.default)(_classNames, "".concat(scrollbarPrefixCls, "-vertical"), !horizontal), (0, _defineProperty2.default)(_classNames, "".concat(scrollbarPrefixCls, "-visible"), visible), _classNames)),
style: containerStyle,
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, containerStyle), style),
onMouseDown: onContainerMouseDown,

@@ -232,3 +232,3 @@ onMouseMove: delayHidden

className: (0, _classnames.default)("".concat(scrollbarPrefixCls, "-thumb"), (0, _defineProperty2.default)({}, "".concat(scrollbarPrefixCls, "-thumb-moving"), dragging)),
style: thumbStyle,
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, thumbStyle), propsThumbStyle),
onMouseDown: onThumbMouseDown

@@ -235,0 +235,0 @@ }));

{
"name": "rc-virtual-list",
"version": "3.11.0",
"version": "3.11.1",
"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