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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/client.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.5.84",
3
+ "version": "1.5.85",
4
4
  "description": "Production-ready Ezoic infinite ads integration for NodeBB 4.x",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
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 = kindClass !== 'ezoic-ad-message';
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('ezoic-ad-message');
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('ezoic-ad-between');
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('ezoic-ad-categories');
1226
+ // decluster disabled for stability on virtualized lists
1227
1227
  }
1228
1228
  }
1229
1229