Skip to content

Commit f624ec8

Browse files
committed
update demo page and version
1 parent b24728a commit f624ec8

File tree

5 files changed

+41
-12
lines changed

5 files changed

+41
-12
lines changed

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ npm install react-scroll-bound --save
1717
## Usage
1818

1919
```jsx
20-
2120
import ScrollBound from 'react-scroll-bound'
2221

2322
<ScrollBound>
2423
{this.getListPoints()}
2524
</ScrollBound>
26-
2725
```
2826

2927
Set css for element overflow scroll
@@ -40,19 +38,16 @@ Set css for element overflow scroll
4038
default tagName is `<ul>`
4139

4240
```jsx
43-
4441
<ScrollBound tagName="div">
4542
{this.getListPoints()}
4643
</ScrollBound>
47-
4844
```
4945

5046
### Set properties
5147

5248
all attributes and properties will transmitted with `{...this.props}`
5349

5450
```jsx
55-
5651
<ScrollBound
5752
id="name"
5853
onWheel={onWheel}
@@ -61,7 +56,6 @@ all attributes and properties will transmitted with `{...this.props}`
6156
>
6257
{this.getListPoints()}
6358
</ScrollBound>
64-
6559
```
6660

6761
## Development

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-scroll-bound",
3-
"version": "16.12.0",
3+
"version": "16.12.1",
44
"description": "prevent parent scrolling, if list scroll end reached, for better experience",
55
"main": "dist/scrollBound.js",
66
"repository": {

page/main.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ h1 small {
3939

4040
h2 {
4141
font-size: 30px;
42-
padding: 0 0 5vh;
42+
padding: 0 0 2vh;
4343
}
4444

4545
h3 {
@@ -58,7 +58,7 @@ p {
5858
padding: 20px;
5959
max-width: 900px;
6060
align-items: stretch;
61-
margin: 0 auto 40vh;
61+
margin: 0 auto 10vh;
6262
}
6363

6464
.grd-2 {

src/index.js

+37-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,24 @@ class App extends Component {
1919
return (
2020
<section>
2121
<h1>
22-
<strong>Prevent Scrolling of Parent</strong>
23-
<small>react-list-scroll-bound</small>
22+
<strong>Scroll-Prevention of Parent</strong>
23+
<small>react-scroll-bound</small>
2424
</h1>
2525

2626
<p>When an children reach end of scrolling, stop scrolling of parent elements</p>
2727

28+
<br />
29+
<br />
30+
2831
<a href="https://github.com/fluse/react-list-scroll-bound" className="docu" target="_blank">Checkout Documentation</a>
2932
<a href="https://www.npmjs.com/package/react-list-scroll-bound" className="npm" target="_blank">NPM Package</a>
3033

34+
<br />
35+
<br />
36+
<br />
37+
<br />
38+
<br />
39+
3140
<h2>Example</h2>
3241

3342
<div className="container">
@@ -46,6 +55,32 @@ class App extends Component {
4655
</div>
4756
</div>
4857

58+
<h2>Take a look at other Packages</h2>
59+
60+
<a href="https://www.npmjs.com/package/react-tab-visibility" className="npm" target="_blank">react-tab-visbility</a>
61+
62+
<br />
63+
<br />
64+
<br />
65+
<br />
66+
<br />
67+
<br />
68+
<br />
69+
<br />
70+
<br />
71+
<br />
72+
<br />
73+
<br />
74+
<br />
75+
<br />
76+
<br />
77+
<br />
78+
<br />
79+
<br />
80+
<br />
81+
<br />
82+
<br />
83+
<br />
4984
</section>
5085
)
5186
}

0 commit comments

Comments
 (0)