@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
|
@@ -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", () =>
|
|
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
|
|
339
|
+
this.map.keyboard.disable();
|
|
340
340
|
};
|
|
341
341
|
const keytonone = () => {
|
|
342
342
|
this.psv.stopKeyboardControl();
|
|
343
|
-
this.map
|
|
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", () =>
|
|
365
|
+
cn.addEventListener("focusout", () => {
|
|
366
|
+
if(this.popup.getAttribute("visible") === null) {
|
|
367
|
+
keytofocused();
|
|
368
|
+
}
|
|
369
|
+
});
|
|
365
370
|
}
|
|
366
371
|
}
|
|
367
372
|
}
|