react-custom-scrollbars
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31420
451
180