We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a7aed commit 55ee319Copy full SHA for 55ee319
Public/js/balloon.js
@@ -9,27 +9,12 @@ export class Balloon {
9
10
constructor() {
11
this.balloon = document.createElement("div");
12
-
13
- this.onmouseover = () => {};
14
- this.onmouseout = () => {};
15
16
this.init();
17
}
18
19
init() {
20
this.balloon.classList.add("d-none", "balloon-content");
21
document.body.appendChild(this.balloon);
22
23
- this.balloon.addEventListener("mouseenter", (event) => {
24
- event.preventDefault();
25
- event.stopPropagation();
26
- this.onmouseover(event);
27
- });
28
- this.balloon.addEventListener("mouseleave", (event) => {
29
30
31
- this.onmouseout(event);
32
33
34
35
show(position) {
0 commit comments