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