Skip to content

Commit

Permalink
de-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Dec 24, 2024
1 parent d2395e1 commit 9d93047
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ext/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ function handleAttributionDialog() {
dialog.showModal();
});
document.documentElement.addEventListener('pointerover', ev => {
clearTimeout(hoverTimeout);
if (hoverTimeout) {
clearTimeout(hoverTimeout);
hoverTimeout = null;
}
const attr = ev.target.closest('[attr-tooltip]');
if (!attr) {
if (dialogSingleton && !dialogSingleton.persistent) {
Expand All @@ -55,10 +58,7 @@ function handleAttributionDialog() {
const y = ev.pageY - scrollY;
if (x < (rect.x - pad) || x > (rect.x + rect.width + pad) ||
y < (rect.y - pad) || y > (rect.y + rect.height + pad)) {
console.info("left the rect", x, y, rect);
dialogSingleton.close();
} else {
console.info("inside the rect", ev.pageX, ev.pageY, rect);
}
}
return;
Expand Down

0 comments on commit 9d93047

Please sign in to comment.