Skip to content

Commit

Permalink
Performance Profiler: Fix tooltip positioning (#94127)
Browse files Browse the repository at this point in the history
  • Loading branch information
epeicher authored Sep 3, 2024
1 parent 2c983dc commit f56df97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ const showTooltip = ( tooltip, data, ev = null ) => {
tooltip.style( 'opacity', 1 );
tooltip
.html( data )
.style( 'left', event.pageX - 28 + 'px' )
.style( 'top', event.pageY - 50 + 'px' );
.style( 'left', event.layerX - 28 + 'px' )
.style( 'top', event.layerY - 50 + 'px' );
};

// Hide tooltip on mouse out
Expand Down

0 comments on commit f56df97

Please sign in to comment.