@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/CHANGELOG.md +5 -1
- package/build/index.css +1 -1
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/build/photoviewer.css +1 -1
- package/build/photoviewer.js +3 -3
- package/build/photoviewer.js.map +1 -1
- package/package.json +1 -1
- package/src/components/core/PhotoViewer.js +10 -8
- package/src/components/ui/Map.js +3 -1
package/package.json
CHANGED
|
@@ -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.
|
|
370
|
-
|
|
371
|
-
this.
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
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
|
}
|
package/src/components/ui/Map.js
CHANGED
|
@@ -595,7 +595,9 @@ export default class Map extends maplibregl.Map {
|
|
|
595
595
|
|
|
596
596
|
if(e.defaultPrevented === false) {
|
|
597
597
|
dropPreview();
|
|
598
|
-
|
|
598
|
+
if(this._parent.isMapWide?.()) {
|
|
599
|
+
this._gridFocus = setTimeout(() => this._parent?.grid?.toggleAway(), 250);
|
|
600
|
+
}
|
|
599
601
|
}
|
|
600
602
|
});
|
|
601
603
|
}
|