Skip to content

Commit

Permalink
support firefox && update version (1.0.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Aug 13, 2015
1 parent b41ccaf commit 19a0921
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "inphinity.js",
"main": "inphinity.js",
"version": "0.9.1",
"version": "1.0.1",
"homepage": "https://github.com/raphamorim/inphinity",
"authors": [
"Raphael H. Amorim <rapha850@gmail.com>"
Expand Down
6 changes: 3 additions & 3 deletions inphinity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Inphinity.js
--------------------------------
+ https://github.com/raphamorim/inphinity
+ version 0.9.1
+ version 1.0.1
+ Copyright 2015 Raphael Amorim
+ Licensed under the MIT license
+ Documentation: https://github.com/raphamorim/inphinity/
+ Documentation: https://github.com/raphamorim/inphinity
*/

var inphinity = (function() {
Expand Down Expand Up @@ -204,7 +204,7 @@ var inphinity = (function() {
this.setEventScroll = function() {
var self = this;
window.addEventListener("scroll", function(ev) {
self.scroller(ev.target.activeElement.scrollTop);
self.scroller(window.scrollY || ev.target.activeElement.scrollTop);
});
};

Expand Down
2 changes: 1 addition & 1 deletion inphinity.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inphinity.js",
"version": "1.0.0",
"version": "1.0.1",
"description": "A infinity scroll without jQuery or other dependency",
"main": "inphinity.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ Suggestions: `normal`, `slow`, `fast`
Default: `500`


## Version

Currently in v1.0.1 :)

## Credits

Infinitely inspired by [Infinity Scroll](https://github.com/infinite-scroll/infinite-scroll)
Expand Down
6 changes: 3 additions & 3 deletions src/inphinity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Inphinity.js
--------------------------------
+ https://github.com/raphamorim/inphinity
+ version 0.9.0
+ version 1.0.1
+ Copyright 2015 Raphael Amorim
+ Licensed under the MIT license
+ Documentation: https://github.com/raphamorim/inphinity/
+ Documentation: https://github.com/raphamorim/inphinity
*/

var inphinity = (function() {
Expand Down Expand Up @@ -204,7 +204,7 @@ var inphinity = (function() {
this.setEventScroll = function() {
var self = this;
window.addEventListener("scroll", function(ev) {
self.scroller(ev.target.activeElement.scrollTop);
self.scroller(window.scrollY || ev.target.activeElement.scrollTop);
});
};

Expand Down

0 comments on commit 19a0921

Please sign in to comment.