Skip to content

Commit

Permalink
Merge pull request #16457 from schlawg/ui-powertip-sustain-hover-hitbox
Browse files Browse the repository at this point in the history
use outerWidth/outerHeight for powertip hover hitbox
  • Loading branch information
ornicar authored Nov 23, 2024
2 parents c1a430e + fcdad5b commit baf63e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/common/css/component/_friend-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

&.tv {
flex: 0 0 auto;
padding: 0 5px 0 0;
padding: 0 5px;
}

&.friend-study {
Expand Down
4 changes: 2 additions & 2 deletions ui/site/src/powertip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,9 @@ function isMouseOver(element: Cash) {
const elementPosition = element.offset()!;
return (
session.currentX >= elementPosition.left &&
session.currentX <= elementPosition.left + element.width() &&
session.currentX <= elementPosition.left + element.outerWidth() &&
session.currentY >= elementPosition.top &&
session.currentY <= elementPosition.top + element.height()
session.currentY <= elementPosition.top + element.outerHeight()
);
}

Expand Down

0 comments on commit baf63e4

Please sign in to comment.