@panoramax/web-viewer 4.0.1-develop-b776b1ef → 4.0.1-develop-c7df5a60

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.0.1-develop-b776b1ef",
3
+ "version": "4.0.1-develop-c7df5a60",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -323,7 +323,11 @@ export default class PhotoViewer extends Basic {
323
323
  for(let cn of this.grid.childNodes) {
324
324
  if(cn.getAttribute("slot") !== "bg") {
325
325
  cn.addEventListener("focusin", () => keytonone());
326
- cn.addEventListener("focusout", () => keytopsv());
326
+ cn.addEventListener("focusout", () => {
327
+ if(this.popup.getAttribute("visible") === null) {
328
+ keytopsv();
329
+ }
330
+ });
327
331
  }
328
332
  }
329
333
  }
@@ -336,11 +336,11 @@ export default class Viewer extends PhotoViewer {
336
336
  };
337
337
  const keytopsv = () => {
338
338
  this.psv.startKeyboardControl();
339
- this.map?.keyboard?.disable();
339
+ this.map.keyboard.disable();
340
340
  };
341
341
  const keytonone = () => {
342
342
  this.psv.stopKeyboardControl();
343
- this.map?.keyboard?.disable();
343
+ this.map.keyboard.disable();
344
344
  };
345
345
  const keytofocused = () => {
346
346
  if(this.map && this.isMapWide()) { keytomap(); }
@@ -350,6 +350,7 @@ export default class Viewer extends PhotoViewer {
350
350
  // General focus change
351
351
  this.addEventListener("focus-changed", e => {
352
352
  if(e.detail.focus === "map") { keytomap(); }
353
+ if(this.popup.getAttribute("visible")) { keytonone(); }
353
354
  else { keytopsv(); }
354
355
  });
355
356
 
@@ -361,7 +362,11 @@ export default class Viewer extends PhotoViewer {
361
362
  for(let cn of this.grid.childNodes) {
362
363
  if(cn.getAttribute("slot") !== "bg") {
363
364
  cn.addEventListener("focusin", () => keytonone());
364
- cn.addEventListener("focusout", () => keytofocused());
365
+ cn.addEventListener("focusout", () => {
366
+ if(this.popup.getAttribute("visible") === null) {
367
+ keytofocused();
368
+ }
369
+ });
365
370
  }
366
371
  }
367
372
  }
@@ -105,6 +105,7 @@ export default class Player extends LitElement {
105
105
  dir="row"
106
106
  size=${this.size}
107
107
  class="pnx-print-hidden"
108
+ style=${!this._activePrev && !this._activePlay && !this._activeNext ? "display: none": ""}
108
109
  >
109
110
  <pnx-button
110
111
  kind="superflat"