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.
@@ -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.scrollIntoView({
19611
- behavior: 'smooth',
19612
- block: 'end'
19613
- });
19614
- return;
19607
+ return handlePartiallyVisibleElementFocus(button, setPreviewEmoji);
19615
19608
  }
19616
19609
  focusElement(button);
19617
19610
  }