react-custom-scrollbars
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -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", |
516
33569