@panoramax/web-viewer 3.2.3-develop-1cd759f5 → 4.0.0-develop-39167b4d

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-1cd759f5",
3
+ "version": "4.0.0-develop-39167b4d",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -152,7 +152,6 @@ export default class PictureLegend extends LitElement {
152
152
  _onPicChange(picMeta) {
153
153
  clearTimeout(this._addrTimer1);
154
154
  this._caption = picMeta?.caption;
155
- this._expanded = this._expanded && this.collapsable;
156
155
 
157
156
  if(picMeta) {
158
157
  const coordsHash = `${picMeta.gps[0]}/${picMeta.gps[1]}`;
@@ -178,7 +177,12 @@ export default class PictureLegend extends LitElement {
178
177
 
179
178
  /** @private */
180
179
  _onBackClick() {
181
- this._parent._setFocus?.("map");
180
+ if(this._parent.isWidthSmall() && this._parent.focus === "map") {
181
+ this._parent.select();
182
+ }
183
+ else {
184
+ this._parent._setFocus?.("map");
185
+ }
182
186
  }
183
187
 
184
188
  /** @private */