Skip to content

Commit 89f21b8

Browse files
hide tooltip on scroll
1 parent 11e9d1d commit 89f21b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/src/js/imports/chart.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ if (chart) {
4343
tooltip.style.left = left + 'px';
4444
tooltip.style.top = top + 'px';
4545
})
46+
document.addEventListener('scroll', function() {
47+
tooltip.style.display = 'none';
48+
});
4649
}
4750

4851
export function Chart() {

0 commit comments

Comments
 (0)