Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-custom-scrollbars

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-custom-scrollbars - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

lib/Scrollbars.js

@@ -370,5 +370,6 @@ 'use strict';

var view = _props.view;
var onScroll = _props.onScroll;
var children = _props.children;
var props = _objectWithoutProperties(_props, ['style', 'scrollbarHorizontal', 'scrollbarVertical', 'thumbHorizontal', 'thumbVertical', 'view', 'children']);
var props = _objectWithoutProperties(_props, ['style', 'scrollbarHorizontal', 'scrollbarVertical', 'thumbHorizontal', 'thumbVertical', 'view', 'onScroll', 'children']);

@@ -375,0 +376,0 @@ var thumbTranslateX = 'translateX(' + x + '%)';

{
"name": "react-custom-scrollbars",
"version": "1.0.0",
"version": "1.0.1",
"description": "React scrollbars component",

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

@@ -99,3 +99,14 @@ react-custom-scrollbars

* `onScroll`: (Function) Event handler. Will be called with the native scroll event and some handy values about the current position. Signature: `onScroll(event, values)`
* `onScroll`: (Function) Event handler. Will be called with the native scroll event and some handy values about the current position.
* **Signature**: `onScroll(event, values)`
* `event`: (Event) Native onScroll event
* `values`: (Object) Values about the current position
* `values.top`: (Number) scrollTop progess, from 0 to 1
* `values.left`: (Number) scrollLeft progess, from 0 to 1
* `clientWidth`: (Number) width of the view
* `clientHeight`: (Number) height of the view
* `scrollWidth`: (Number) native scrollWidth
* `scrollHeight`: (Number) native scrollHeight
* `scrollLeft`: (Number) native scrollLeft
* `scrollTop`: (Number) native scrollTop
* `scrollbarHorizontal`: (Function) Horizontal scrollbar element

@@ -129,3 +140,3 @@ * `scrollbarVertical`: (Function) Vertical scrollbar element

### Receive values about the current position**
### Receive values about the current position

@@ -132,0 +143,0 @@ ```javascript

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