Skip to content

Commit

Permalink
Repackage for multiple module types. Reduce module size
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-run committed Jan 17, 2018
1 parent 09ff829 commit 1d6fcbc
Show file tree
Hide file tree
Showing 11 changed files with 6,332 additions and 4,045 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": [ "es2015" ],
"presets": ["es2015"],
"plugins": ["transform-react-jsx"]
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist
.DS_Store
node_modules
coverage
.idea
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- '9'
- '8'
- '6'
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.tabSize": 2,
"prettier.printWidth": 120,
"prettier.singleQuote": true,
"prettier.trailingComma": "all"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A simple React component that lets you listen for when you have scrolled to the
## Installation

npm:
`npm install --save react-bottom-scroll-listener`
`npm install react-bottom-scroll-listener`

yarn:
`yarn add react-bottom-scroll-listener`
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BottomScrollListener extends Component {
handleOnScroll() {
const scrollNode = document.scrollingElement || document.documentElement;

if (scrollNode.scrollHeight - this.props.offset <= (scrollNode.scrollTop + window.innerHeight)) {
if (scrollNode.scrollHeight - this.props.offset <= scrollNode.scrollTop + window.innerHeight) {
this.props.onBottom();
}
}
Expand Down
Loading

0 comments on commit 1d6fcbc

Please sign in to comment.