- var last_y_pos = 0;
- var product_iteration = 1;
- overlay.find(".hr-results").on('scroll', ui_utility.throttle(function() {
- if (closed) {
- return;
- }
- var current_y_pos = overlay.find(".hr-results").get(0).scrollTop;
- storage.put("y_pos", overlay.find(".hr-results").get(0).scrollTop);
- if (current_y_pos > last_y_pos) {
- console.log(overlay.get(0).scrollHeight, overlay.find(".hr-results").get(0).scrollTop, overlay.get(0).scrollHeight, product_iteration);
- if ((overlay.find(".hr-results").get(0).scrollTop > (overlay.get(0).scrollHeight * product_iteration)) && searcher.search_term && searcher.search_term.length) {
- load_more_results(true);
- product_iteration ++;
- }
- }
- last_y_pos = current_y_pos;
- }, 200));
[text] scroll fix
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: