react-tooltip 6.0.6-beta.1280.rc.0 → 6.0.7-beta.1282.rc.0

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.
@@ -847,6 +847,11 @@ const useTooltipEvents = ({ activeAnchor, anchorElements, anchorSelector, clicka
847
847
  debouncedHandleShowTooltip(resolveAnchorElementRef.current(event.target));
848
848
  });
849
849
  }
850
+ if (actualOpenEvents.mouseenter || actualOpenEvents.mouseover || actualOpenEvents.focus) {
851
+ addDelegatedListener('touchstart', (event) => {
852
+ debouncedHandleShowTooltip(resolveAnchorElementRef.current(event.target));
853
+ });
854
+ }
850
855
  if (actualCloseEvents.blur) {
851
856
  addDelegatedListener('focusout', (event) => {
852
857
  const targetAnchor = resolveAnchorElementRef.current(event.target);
@@ -951,6 +956,7 @@ const useTooltipEvents = ({ activeAnchor, anchorElements, anchorSelector, clicka
951
956
  React.useEffect(() => {
952
957
  const handleScrollResize = () => {
953
958
  handleShowRef.current(false);
959
+ clearTimeoutRef(tooltipShowDelayTimerRef);
954
960
  };
955
961
  const tooltipScrollParent = tooltipScrollParentRef.current;
956
962
  const anchorScrollParent = anchorScrollParentRef.current;