@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.cjs
CHANGED
|
@@ -3446,7 +3446,9 @@ function KeyboardControls({
|
|
|
3446
3446
|
return;
|
|
3447
3447
|
}
|
|
3448
3448
|
const previousTabIndex = element.getAttribute("tabindex");
|
|
3449
|
+
const previousOutline = element.style.outline;
|
|
3449
3450
|
element.tabIndex = 0;
|
|
3451
|
+
element.style.outline = "none";
|
|
3450
3452
|
const syncKeyboardActive = () => {
|
|
3451
3453
|
let continuous = false;
|
|
3452
3454
|
for (const action of pressedRef.current) {
|
|
@@ -3530,6 +3532,7 @@ function KeyboardControls({
|
|
|
3530
3532
|
} else {
|
|
3531
3533
|
element.setAttribute("tabindex", previousTabIndex);
|
|
3532
3534
|
}
|
|
3535
|
+
element.style.outline = previousOutline;
|
|
3533
3536
|
clearPressed();
|
|
3534
3537
|
};
|
|
3535
3538
|
}, [controlsRef, enabled, gl, keyMap]);
|