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 81df505 commit cec5a58Copy full SHA for cec5a58
view/frontend/web/js/lazyload.js
@@ -1,5 +1,5 @@
1
/**
2
- * Copyright © 2016 Ihor Vansach ([email protected]). All rights reserved.
+ * Copyright © 2015-2017 Ihor Vansach ([email protected]). All rights reserved.
3
* See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
4
*
5
* Glory to Ukraine! Glory to the heroes!
@@ -86,7 +86,7 @@
86
if (that.opt.auto_trigger) {
87
var $w = $(window);
88
$w.scroll(function() {
89
- if ($w.scrollTop() + $w.height() >= $(document).height() - that.opt.padding) {
+ if ($w.scrollTop() + $w.height() >= $(that.opt.trigger_element).offset().top - that.opt.padding) {
90
startLoading();
91
}
92
});
0 commit comments