Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Commit

Permalink
Fix #3
Browse files Browse the repository at this point in the history
- Fix support for Firefox
- Add bower
  • Loading branch information
EnzoMartin committed Jul 14, 2016
1 parent 4256dcc commit 1f06c6d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name" : "jquery-sticky-element",
"version" : "1.1.3",
"main" : ["jquery.stickyelement.min.js"],
"dependencies" : {
"jquery" : ">=1.7.0"
},
"ignore" : [
"README.md",
"LICENSE",
"stickyelement.jquery.json",
"demo.html"
]
}
2 changes: 1 addition & 1 deletion jquery.stickyelement.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
* This will decide whether to move the stickied item
*/
Sticky.prototype.moveIt = function(){
var scrollTop = win.document.body.scrollTop;
var scrollTop = win.document.documentElement.scrollTop || win.document.body.scrollTop;
var height = this.element.outerHeight(true);
var realStop = this._stop - height;

Expand Down
2 changes: 1 addition & 1 deletion jquery.stickyelement.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,7 +1,7 @@
{
"name": "jquery-sticky-element",
"description": "Simple and lightweight plugin to pin/sticky elements inside a container so they move as the user scrolls",
"version": "1.1.2",
"version": "1.1.3",
"repository": {
"type": "git",
"url": "git@github.com:EnzoMartin/Sticky-Element.git"
Expand Down
2 changes: 1 addition & 1 deletion stickyelement.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"element",
"scroll"
],
"version": "1.1.2",
"version": "1.1.3",
"author": {
"name": "Enzo Martin",
"email": "enzo.r.martin@gmail.com",
Expand Down

0 comments on commit 1f06c6d

Please sign in to comment.