Skip to content

Commit

Permalink
use outerWidth/outerHeight for powertip hover hitbox
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg committed Nov 22, 2024
1 parent de56429 commit fcdad5b
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 fcdad5b

Please sign in to comment.