@ericchen1990/pano-view 3.4.0 → 3.4.1
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/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +6 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3404,7 +3404,9 @@ function KeyboardControls({
|
|
|
3404
3404
|
return;
|
|
3405
3405
|
}
|
|
3406
3406
|
const previousTabIndex = element.getAttribute("tabindex");
|
|
3407
|
+
const previousOutline = element.style.outline;
|
|
3407
3408
|
element.tabIndex = 0;
|
|
3409
|
+
element.style.outline = "none";
|
|
3408
3410
|
const syncKeyboardActive = () => {
|
|
3409
3411
|
let continuous = false;
|
|
3410
3412
|
for (const action of pressedRef.current) {
|
|
@@ -3488,6 +3490,7 @@ function KeyboardControls({
|
|
|
3488
3490
|
} else {
|
|
3489
3491
|
element.setAttribute("tabindex", previousTabIndex);
|
|
3490
3492
|
}
|
|
3493
|
+
element.style.outline = previousOutline;
|
|
3491
3494
|
clearPressed();
|
|
3492
3495
|
};
|
|
3493
3496
|
}, [controlsRef, enabled, gl, keyMap]);
|