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
|
@@ -19603,15 +19603,8 @@ function useEmojiPreviewEvents(allow, setPreviewEmoji) {
|
|
|
19603
19603
|
if (button) {
|
|
19604
19604
|
var belowFoldByPx = detectEmojyPartiallyBelowFold(button, bodyRef);
|
|
19605
19605
|
var buttonHeight = button.getBoundingClientRect().height;
|
|
19606
|
-
if (belowFoldByPx < buttonHeight / 2) {
|
|
19607
|
-
return handlePartiallyVisibleElementFocus(button, setPreviewEmoji);
|
|
19608
|
-
}
|
|
19609
19606
|
if (belowFoldByPx < buttonHeight) {
|
|
19610
|
-
button
|
|
19611
|
-
behavior: 'smooth',
|
|
19612
|
-
block: 'end'
|
|
19613
|
-
});
|
|
19614
|
-
return;
|
|
19607
|
+
return handlePartiallyVisibleElementFocus(button, setPreviewEmoji);
|
|
19615
19608
|
}
|
|
19616
19609
|
focusElement(button);
|
|
19617
19610
|
}
|