Skip to content

Commit 9c0311e

Browse files
committed
update peerdependencies
2 parents 814d063 + 871f360 commit 9c0311e

2 files changed

Lines changed: 58 additions & 39 deletions

File tree

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Brings a better control for user and increase use experience.
66

77
![ScreenShot](/example.png)
88

9-
build with react 15.x
9+
supports react 15.x and 16.x
1010

1111
[![npm package](https://nodei.co/npm/react-list-scroll-bound.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/react-list-scroll-bound/)
1212
[![NPM](https://nodei.co/npm-dl/react-list-scroll-bound.png?months=6&height=3)](https://www.npmjs.com/package/react-list-scroll-bound)
@@ -39,6 +39,24 @@ default tagName is `<ul>`
3939

4040
```
4141

42+
### get events
43+
44+
```jsx
45+
46+
let onWheel = function (event) {
47+
console.log(event)
48+
}
49+
50+
let onClick = function (event) {
51+
console.log(event)
52+
}
53+
54+
<ListScrollBound onWheel={onWheel} onClick={onClick} className="my-list">
55+
{this.getListPoints()}
56+
</ListScrollBound>
57+
58+
```
59+
4260
### set more propTypes
4361

4462
all given properties will set on the given ListScrollBound element, with

package.json

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
{
2-
"name": "react-list-scroll-bound",
3-
"version": "16.3.0",
4-
"description": "prevent body scrolling, if list border reached, to get a better experience",
5-
"main": "dist/listScrollBound.js",
6-
"repository": {
7-
"type": "git",
8-
"url": "https://github.com/fluse/react-list-scroll-bound.git"
9-
},
10-
"keywords": [
11-
"React",
12-
"scrolling",
13-
"prevent body",
14-
"list",
15-
"react-component",
16-
"es5",
17-
"es6"
18-
],
19-
"author": "Holger Schauf",
20-
"website": "http://www.holger-schauf.de",
21-
"license": "MIT",
22-
"bugs": {
23-
"url": "https://github.com/fluse/react-list-scroll-bound/issues"
24-
},
25-
"homepage": "https://github.com/fluse/react-list-scroll-bound",
26-
"scripts": {
27-
"compile": "babel ./src/listScrollBound.jsx -o ./dist/listScrollBound.js"
28-
},
29-
"devDependencies": {
30-
"babel-cli": "^6.8.0",
31-
"babel-core": "^6.7.4",
32-
"babel-preset-es2015": "^6.6.0",
33-
"babel-preset-react": "^6.5.0"
34-
},
35-
"peerDependencies": {
36-
"react": "^0.14.0 || ^15.5.0 || ^16.x.x",
37-
"prop-types": "^15.5.8 || ^16.x.x",
38-
"react-dom": "^0.14.0 || ^15.5.0 || ^16.x.x"
39-
}
2+
"name": "react-list-scroll-bound",
3+
"version": "16.3.0",
4+
"description": "prevent body scrolling, if list border reached, to get a better experience",
5+
"main": "dist/listScrollBound.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/fluse/react-list-scroll-bound.git"
9+
},
10+
"keywords": [
11+
"React 15",
12+
"React 16",
13+
"scrolling",
14+
"prevent body",
15+
"onWheel",
16+
"div scroll",
17+
"list",
18+
"react-component"
19+
],
20+
"author": "Holger Schauf",
21+
"website": "http://www.holger-schauf.de",
22+
"license": "MIT",
23+
"bugs": {
24+
"url": "https://github.com/fluse/react-list-scroll-bound/issues"
25+
},
26+
"homepage": "https://github.com/fluse/react-list-scroll-bound",
27+
"scripts": {
28+
"compile": "babel ./src/listScrollBound.jsx -o ./dist/listScrollBound.js"
29+
},
30+
"devDependencies": {
31+
"babel-cli": "^6.8.0",
32+
"babel-core": "^6.7.4",
33+
"babel-preset-es2015": "^6.6.0",
34+
"babel-preset-react": "^6.5.0"
35+
},
36+
"peerDependencies": {
37+
"react": "^0.14.0 || ^15.5.0 || ^15.5.0 || ^16.x.x",
38+
"prop-types": "^15.5.8 || ^16.x.x",
39+
"react-dom": "^0.14.0 || ^15.5.0 || ^16.x.x"
40+
}
4041
}

0 commit comments

Comments
 (0)