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.1.0 to 2.1.1

28

lib/Scrollbars.js

@@ -330,21 +330,21 @@ 'use strict';

if ((0, _getScrollbarWidth2.default)() === 0) return;
this.raf(function () {
var _getInnerSizePercenta = _this2.getInnerSizePercentage();
var _getInnerSizePercenta = this.getInnerSizePercentage();
var widthPercentageInner = _getInnerSizePercenta.widthPercentageInner;
var heightPercentageInner = _getInnerSizePercenta.heightPercentageInner;
var widthPercentageInner = _getInnerSizePercenta.widthPercentageInner;
var heightPercentageInner = _getInnerSizePercenta.heightPercentageInner;
var _getPosition = _this2.getPosition();
var _getPosition = this.getPosition();
var x = _getPosition.x;
var y = _getPosition.y;
var x = _getPosition.x;
var y = _getPosition.y;
var values = _objectWithoutProperties(_getPosition, ['x', 'y']);
var values = _objectWithoutProperties(_getPosition, ['x', 'y']);
_this2.setScrollbarHorizontalStyle(_this2.getScrollbarHorizontalStyle(widthPercentageInner));
_this2.setScrollbarVerticalStyle(_this2.getScrollbarVerticalStyle(heightPercentageInner));
_this2.setThumbHorizontalStyle(_this2.getThumbHorizontalStyle(x, widthPercentageInner));
_this2.setThumbVerticalStyle(_this2.getThumbVerticalStyle(y, heightPercentageInner));
this.raf(function () {
if ((0, _getScrollbarWidth2.default)() > 0) {
_this2.setScrollbarHorizontalStyle(_this2.getScrollbarHorizontalStyle(widthPercentageInner));
_this2.setScrollbarVerticalStyle(_this2.getScrollbarVerticalStyle(heightPercentageInner));
_this2.setThumbHorizontalStyle(_this2.getThumbHorizontalStyle(x, widthPercentageInner));
_this2.setThumbVerticalStyle(_this2.getThumbVerticalStyle(y, heightPercentageInner));
}
if (typeof callback !== 'function') return;

@@ -351,0 +351,0 @@ callback(values);

{
"name": "react-custom-scrollbars",
"version": "2.1.0",
"version": "2.1.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