emoji-picker-react 4.7.17 → 4.7.18
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/emoji-picker-react.cjs.development.js +1 -8
- package/dist/emoji-picker-react.cjs.development.js.map +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js.map +1 -1
- package/dist/emoji-picker-react.esm.js +1 -8
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/useEmojiPreviewEvents.ts +1 -5
|
@@ -19602,15 +19602,8 @@ function useEmojiPreviewEvents(allow, setPreviewEmoji) {
|
|
|
19602
19602
|
if (button) {
|
|
19603
19603
|
var belowFoldByPx = detectEmojyPartiallyBelowFold(button, bodyRef);
|
|
19604
19604
|
var buttonHeight = button.getBoundingClientRect().height;
|
|
19605
|
-
if (belowFoldByPx < buttonHeight / 2) {
|
|
19606
|
-
return handlePartiallyVisibleElementFocus(button, setPreviewEmoji);
|
|
19607
|
-
}
|
|
19608
19605
|
if (belowFoldByPx < buttonHeight) {
|
|
19609
|
-
button
|
|
19610
|
-
behavior: 'smooth',
|
|
19611
|
-
block: 'end'
|
|
19612
|
-
});
|
|
19613
|
-
return;
|
|
19606
|
+
return handlePartiallyVisibleElementFocus(button, setPreviewEmoji);
|
|
19614
19607
|
}
|
|
19615
19608
|
focusElement(button);
|
|
19616
19609
|
}
|