react-tooltip 6.0.7 → 6.0.8

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