Merge "Account for scroll offset when using non-mouse positioning"

This commit is contained in:
jenkins-bot 2024-04-14 02:30:39 +00:00 committed by Gerrit Code Review
commit 3cf45dd5ab
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -381,7 +381,7 @@ export function createLayout(
// Position according to link position or size
measures.offset.top + measures.height + pointerSize,
offsetLeft;
const clientTop = measures.clientY ? measures.clientY : offsetTop;
const clientTop = measures.clientY ? measures.clientY : offsetTop - measures.scrollTop;
if ( measures.pageX ) {
if ( measures.width > maxLinkWidthForCenteredPointer ) {