@panoramax/web-viewer 3.2.3-develop-c98a9439 → 3.2.3-develop-b76f2545

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "3.2.3-develop-c98a9439",
3
+ "version": "3.2.3-develop-b76f2545",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -330,7 +330,8 @@ export default class PhotoViewer extends Basic {
330
330
 
331
331
  /** @private */
332
332
  _moveChildToGrid() {
333
- for(let i=0; i < this.childNodes.length; i++) {
333
+ let i = 0;
334
+ while(i < this.childNodes.length) {
334
335
  let n = this.childNodes[i];
335
336
  if(n.getAttribute?.("slot")) {
336
337
  // Add parent + translation for our components
@@ -347,6 +348,7 @@ export default class PhotoViewer extends Basic {
347
348
  this.grid.appendChild(n);
348
349
  }
349
350
  }
351
+ else { i++; }
350
352
  }
351
353
  }
352
354