Get the non-framed popover working initially
This commit is contained in:
parent
8e8202f8a6
commit
77abcb11a9
5 changed files with 132 additions and 165 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue