Get the non-framed popover working initially

This commit is contained in:
Oliver-Akins 2025-03-14 16:33:58 -06:00
parent 8e8202f8a6
commit 77abcb11a9
5 changed files with 132 additions and 165 deletions

View file

@ -193,8 +193,9 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin
* @param {PointerEvent} event
*/
async #ammoInfoPointerEnter(event) {
console.log(event.x, event.y);
const { x, y } = event;
const pos = event.target.getBoundingClientRect();
const x = pos.x + Math.floor(pos.width / 2);
const y = pos.y;
this.#ammoTrackerHoverTimeout = setTimeout(
() => {
@ -214,7 +215,7 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin
async #ammoInfoPointerOut() {
if (this.#ammoTracker) {
// this.#ammoTracker.close();
this.#ammoTracker.close();
};
if (this.#ammoTrackerHoverTimeout !== null) {