nodebb-plugin-ezoic-infinite 1.5.84 → 1.5.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/client.js +4 -4
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -1104,7 +1104,7 @@ function buildOrdinalMap(items) {
|
|
|
1104
1104
|
if (!id) {
|
|
1105
1105
|
// Safe mode: disable recycling for topic message ads to prevent visual "jumping"
|
|
1106
1106
|
// (ads seemingly moving back under the first post during virtualized scroll).
|
|
1107
|
-
const allowRecycle =
|
|
1107
|
+
const allowRecycle = false; // hard-disable recycling to prevent wrappers jumping to top on virtualized/infinite scroll
|
|
1108
1108
|
recycledWrap = (allowRecycle && scrollDir > 0) ? pickRecyclableWrap(kindClass) : null;
|
|
1109
1109
|
if (recycledWrap) {
|
|
1110
1110
|
id = recycledWrap.getAttribute('data-ezoic-wrapid') || '';
|
|
@@ -1195,7 +1195,7 @@ function buildOrdinalMap(items) {
|
|
|
1195
1195
|
state.allPosts,
|
|
1196
1196
|
'curPosts'
|
|
1197
1197
|
);
|
|
1198
|
-
decluster
|
|
1198
|
+
// decluster disabled for stability on virtualized lists
|
|
1199
1199
|
}
|
|
1200
1200
|
} else if (kind === 'categoryTopics') {
|
|
1201
1201
|
if (normalizeBool(cfg.enableBetweenAds)) {
|
|
@@ -1209,7 +1209,7 @@ function buildOrdinalMap(items) {
|
|
|
1209
1209
|
state.allTopics,
|
|
1210
1210
|
'curTopics'
|
|
1211
1211
|
);
|
|
1212
|
-
decluster
|
|
1212
|
+
// decluster disabled for stability on virtualized lists
|
|
1213
1213
|
}
|
|
1214
1214
|
} else if (kind === 'categories') {
|
|
1215
1215
|
if (normalizeBool(cfg.enableCategoryAds)) {
|
|
@@ -1223,7 +1223,7 @@ function buildOrdinalMap(items) {
|
|
|
1223
1223
|
state.allCategories,
|
|
1224
1224
|
'curCategories'
|
|
1225
1225
|
);
|
|
1226
|
-
decluster
|
|
1226
|
+
// decluster disabled for stability on virtualized lists
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
|