function makeSticky() {
    setTransitionDuration([popper], isIE$1 ? 0 : instance.props.updateDuration);
    var prevRefRect = reference.getBoundingClientRect();

    function updatePosition() {
      var currentRefRect = reference.getBoundingClientRect(); // Only schedule an update if the reference rect has changed

      if (prevRefRect.top !== currentRefRect.top || prevRefRect.right !== currentRefRect.right || prevRefRect.bottom !== currentRefRect.bottom || prevRefRect.left !== currentRefRect.left) {
        instance.popperInstance.scheduleUpdate();
      }

      prevRefRect = currentRefRect;

      if (instance.state.isMounted) {
        requestAnimationFrame(updatePosition);
      }
    }

    updatePosition();
  }
/**
   * Updates the tooltip's position on each animation frame
   */
Updates the tooltip's position on each animation frame
Updates the tooltip ' s position on each animation frame
function makeSticky() {
    setTransitionDuration([popper], isIE$1 ? 0 : instance.props.updateDuration);
    var prevRefRect = reference.getBoundingClientRect();
    function updatePosition() {
      var currentRefRect = reference.getBoundingClientRect(); 
      if (prevRefRect.top !== currentRefRect.top || prevRefRect.right !== currentRefRect.right || prevRefRect.bottom !== currentRefRect.bottom || prevRefRect.left !== currentRefRect.left) {
        instance.popperInstance.scheduleUpdate();
      }
      prevRefRect = currentRefRect;
      if (instance.state.isMounted) {
        requestAnimationFrame(updatePosition);
      }
    }
    updatePosition();
  }
function makeSticky ( ) { setTransitionDuration ( [ popper ] , isIE$1 ? 0 : instance . props . updateDuration ) ; var prevRefRect = reference . getBoundingClientRect ( ) ; function updatePosition ( ) { var currentRefRect = reference . getBoundingClientRect ( ) ; if ( prevRefRect . top !== currentRefRect . top || prevRefRect . right !== currentRefRect . right || prevRefRect . bottom !== currentRefRect . bottom || prevRefRect . left !== currentRefRect . left ) { instance . popperInstance . scheduleUpdate ( ) ; } prevRefRect = currentRefRect ; if ( instance . state . isMounted ) { requestAnimationFrame ( updatePosition ) ; } } updatePosition ( ) ; }
Updates the tooltip's position on each animation frame
Updates the tooltip ' s position on each animation frame
// Only schedule an update if the reference rect has changed