Socket
Socket
Sign inDemoInstall

react-custom-scrollbars

Package Overview
Dependencies
51
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.2.1

42

lib/Scrollbars/index.js

@@ -132,44 +132,2 @@ 'use strict';

},
getThumbHorizontalStyle: function getThumbHorizontalStyle(x, widthPercentageInner) {
return {
width: widthPercentageInner < 100 ? widthPercentageInner + '%' : 0,
transform: 'translateX(' + x + '%)'
};
},
getThumbVerticalStyle: function getThumbVerticalStyle(y, heightPercentageInner) {
return {
height: heightPercentageInner < 100 ? heightPercentageInner + '%' : 0,
transform: 'translateY(' + y + '%)'
};
},
getScrollbarHorizontalStyle: function getScrollbarHorizontalStyle(widthPercentageInner) {
return {
height: widthPercentageInner < 100 ? 6 : 0
};
},
getScrollbarVerticalStyle: function getScrollbarVerticalStyle(heightPercentageInner) {
return {
width: heightPercentageInner < 100 ? 6 : 0
};
},
setThumbHorizontalStyle: function setThumbHorizontalStyle(style) {
var thumbHorizontal = this.refs.thumbHorizontal;
(0, _domCss2.default)(thumbHorizontal, style);
},
setThumbVerticalStyle: function setThumbVerticalStyle(style) {
var thumbVertical = this.refs.thumbVertical;
(0, _domCss2.default)(thumbVertical, style);
},
setScrollbarHorizontalStyle: function setScrollbarHorizontalStyle(style) {
var barHorizontal = this.refs.barHorizontal;
(0, _domCss2.default)(barHorizontal, style);
},
setScrollbarVerticalStyle: function setScrollbarVerticalStyle(style) {
var barVertical = this.refs.barVertical;
(0, _domCss2.default)(barVertical, style);
},
scrollTop: function scrollTop() {

@@ -176,0 +134,0 @@ var top = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0];

2

package.json
{
"name": "react-custom-scrollbars",
"version": "2.2.0",
"version": "2.2.1",
"description": "React scrollbars component",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc