We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8afda3b commit e0262e0Copy full SHA for e0262e0
stellar.js
@@ -1,4 +1,4 @@
1
-/* Stellar.js v0.2
+/* Stellar.js v0.2.1
2
* Copyright 2012, Mark Dalgleish
3
*
4
* This content is released under the MIT License
@@ -136,6 +136,7 @@
136
this._startAnimationLoop();
137
},
138
_defineElements: function() {
139
+ if (this.element === document.body) this.element = window;
140
this.$scrollElement = $(this.element);
141
this.$element = this.element === window ? $('body') : this.$scrollElement;
142
this.$viewportElement = (this.options.viewportElement !== undefined ? $(this.options.viewportElement) : (this.$scrollElement[0] === window || this.options.scrollProperty.indexOf('scroll') === 0 ? this.$scrollElement : this.$scrollElement.parent()) );
0 commit comments