@panoramax/web-viewer 4.3.0-develop-18f2f94f → 4.3.0-develop-a4b37018

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": "4.3.0-develop-18f2f94f",
3
+ "version": "4.3.0-develop-a4b37018",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -366,14 +366,16 @@ export default class PhotoViewer extends Basic {
366
366
  clearTimeout(this._gridFocus);
367
367
 
368
368
  if(e.data.target.tagName === "CANVAS") {
369
- this._gridFocus = setTimeout(() => {
370
- if(this.grid.toggleAway()) {
371
- this.classList.add("pnx-grid-toggled");
372
- }
373
- else {
374
- this.classList.remove("pnx-grid-toggled");
375
- }
376
- }, 250);
369
+ if(!this.isMapWide || (this.isMapWide && !this.isMapWide())) {
370
+ this._gridFocus = setTimeout(() => {
371
+ if(this.grid.toggleAway()) {
372
+ this.classList.add("pnx-grid-toggled");
373
+ }
374
+ else {
375
+ this.classList.remove("pnx-grid-toggled");
376
+ }
377
+ }, 250);
378
+ }
377
379
  }
378
380
  });
379
381
  }
@@ -595,7 +595,9 @@ export default class Map extends maplibregl.Map {
595
595
 
596
596
  if(e.defaultPrevented === false) {
597
597
  dropPreview();
598
- this._gridFocus = setTimeout(() => this._parent?.grid?.toggleAway(), 250);
598
+ if(this._parent.isMapWide?.()) {
599
+ this._gridFocus = setTimeout(() => this._parent?.grid?.toggleAway(), 250);
600
+ }
599
601
  }
600
602
  });
601
603
  }