Skip to content

Commit 1d6fcbc

Browse files
committed
Repackage for multiple module types. Reduce module size
1 parent 09ff829 commit 1d6fcbc

11 files changed

+6332
-4045
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"presets": [ "es2015" ],
2+
"presets": ["es2015"],
33
"plugins": ["transform-react-jsx"]
44
}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dist
2+
.DS_Store
23
node_modules
34
coverage
4-
.idea

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: node_js
2+
node_js:
3+
- '9'
4+
- '8'
5+
- '6'

.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"editor.tabSize": 2,
3+
"prettier.printWidth": 120,
4+
"prettier.singleQuote": true,
5+
"prettier.trailingComma": "all"
6+
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A simple React component that lets you listen for when you have scrolled to the
55
## Installation
66

77
npm:
8-
`npm install --save react-bottom-scroll-listener`
8+
`npm install react-bottom-scroll-listener`
99

1010
yarn:
1111
`yarn add react-bottom-scroll-listener`

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BottomScrollListener extends Component {
2020
handleOnScroll() {
2121
const scrollNode = document.scrollingElement || document.documentElement;
2222

23-
if (scrollNode.scrollHeight - this.props.offset <= (scrollNode.scrollTop + window.innerHeight)) {
23+
if (scrollNode.scrollHeight - this.props.offset <= scrollNode.scrollTop + window.innerHeight) {
2424
this.props.onBottom();
2525
}
2626
}

0 commit comments

Comments
 (0)