修复AJAX 引擎
This commit is contained in:
@@ -256,6 +256,17 @@
|
||||
});
|
||||
}
|
||||
|
||||
// The runtime lazySizes dispatches lazybeforeunveil natively but follows up
|
||||
// with a jQuery-simulated click, which native listeners never receive.
|
||||
// Route the unveil trigger through the same click pipeline.
|
||||
if (container.classList.contains("lazyload") || clickTarget.classList.contains("lazyload")) {
|
||||
container.addEventListener("lazybeforeunveil", function (e) {
|
||||
if (e.target !== container && e.target !== clickTarget) return;
|
||||
clickTarget.dataset.lazyAuto = "1";
|
||||
clickTarget.click();
|
||||
});
|
||||
}
|
||||
|
||||
if (mode === "infinite") {
|
||||
if ((isComment && window.aksrtData && aksrtData.commentIasAuto === false) || !hasAjaxConfig()) {
|
||||
var autoTrigger = clickTarget.closest(".next-page") || clickTarget;
|
||||
|
||||
Reference in New Issue
Block a user