pixelon 0.7.1 → 0.7.2
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.esm.js +6 -1
- package/dist/index.js +6 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10858,7 +10858,12 @@ function useDrawerKeyboardLock(containerRef, isOpen) {
|
|
|
10858
10858
|
if (document.activeElement === input) return;
|
|
10859
10859
|
const dy = Math.abs((e.changedTouches[0]?.clientY ?? startY) - startY);
|
|
10860
10860
|
if (dy > 5) return;
|
|
10861
|
-
if (keyboardOpen())
|
|
10861
|
+
if (keyboardOpen()) {
|
|
10862
|
+
window.setTimeout(() => {
|
|
10863
|
+
if (document.activeElement === input) input.scrollIntoView({ block: "center" });
|
|
10864
|
+
}, 50);
|
|
10865
|
+
return;
|
|
10866
|
+
}
|
|
10862
10867
|
e.preventDefault();
|
|
10863
10868
|
target = input;
|
|
10864
10869
|
proxy.focus();
|
package/dist/index.js
CHANGED
|
@@ -10879,7 +10879,12 @@ function useDrawerKeyboardLock(containerRef, isOpen) {
|
|
|
10879
10879
|
if (document.activeElement === input) return;
|
|
10880
10880
|
const dy = Math.abs((e.changedTouches[0]?.clientY ?? startY) - startY);
|
|
10881
10881
|
if (dy > 5) return;
|
|
10882
|
-
if (keyboardOpen())
|
|
10882
|
+
if (keyboardOpen()) {
|
|
10883
|
+
window.setTimeout(() => {
|
|
10884
|
+
if (document.activeElement === input) input.scrollIntoView({ block: "center" });
|
|
10885
|
+
}, 50);
|
|
10886
|
+
return;
|
|
10887
|
+
}
|
|
10883
10888
|
e.preventDefault();
|
|
10884
10889
|
target = input;
|
|
10885
10890
|
proxy.focus();
|