Skip to content

Commit de69817

Browse files
committed
update dependencies and docu
1 parent 62d8726 commit de69817

2 files changed

Lines changed: 57 additions & 36 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,24 @@ default tagName is `<ul>`
3939

4040
```
4141

42+
### get scroll event
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 & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
{
2-
"name": "react-list-scroll-bound",
3-
"version": "15.5.4",
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-
],
17-
"author": "Holger Schauf",
18-
"website": "http://www.holger-schauf.de",
19-
"license": "MIT",
20-
"bugs": {
21-
"url": "https://github.com/fluse/react-list-scroll-bound/issues"
22-
},
23-
"homepage": "https://github.com/fluse/react-list-scroll-bound",
24-
"scripts": {
25-
"compile": "babel ./src/listScrollBound.jsx -o ./dist/listScrollBound.js"
26-
},
27-
"devDependencies": {
28-
"babel-cli": "^6.8.0",
29-
"babel-core": "^6.7.4",
30-
"babel-preset-es2015": "^6.6.0",
31-
"babel-preset-react": "^6.5.0"
32-
},
33-
"peerDependencies": {
34-
"react": "^0.14.0 || ^15.5.0",
35-
"prop-types": "^15.5.8",
36-
"react-dom": "^0.14.0 || ^15.5.0"
37-
}
2+
"name": "react-list-scroll-bound",
3+
"version": "16.0.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",
38+
"prop-types": "^15.5.8",
39+
"react-dom": "^0.14.0 || ^15.5.0"
40+
}
3841
}

0 commit comments

Comments
 (0)