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 5071e54 commit e6795cbCopy full SHA for e6795cb
lib/web/mage/sticky.js
@@ -57,12 +57,10 @@ define([
57
58
offset = Math.max(0, Math.min(offset, this.maxOffset));
59
60
- var stuck = this.element.hasClass(this.options.stickyClass);
61
- if (offset && this.options.offsetTop && !stuck) {
62
- var offsetTop = this._getOptionValue('offsetTop');
63
- if (offset < offsetTop) {
64
- offset = 0;
65
- }
+ var stuck = this.element.hasClass(this.options.stickyClass),
+ offsetTop = this._getOptionValue('offsetTop');
+ if (offset && !stuck && offset < offsetTop) {
+ offset = 0;
66
}
67
68
this.element
0 commit comments