Skip to content

Commit 75deb69

Browse files
author
Avaer Kazmer
committed
Small header events tracking bugfixing
1 parent d4ea76b commit 75deb69

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,13 @@ <h3>
10771077
developersPopdown.classList.toggle('open');
10781078
}; */
10791079

1080+
const _stopPropagation = e => {
1081+
e.stopPropagation();
1082+
};
1083+
const header = document.getElementById('header');
1084+
header.addEventListener('mousedown', _stopPropagation);
1085+
header.addEventListener('dblclick', _stopPropagation);
1086+
10801087
const submitSiteUrlBar = document.getElementById('site-url-bar');
10811088
const submitSiteButton = document.getElementById('submit-site');
10821089
submitSiteButton.addEventListener('click', () => {
@@ -1098,11 +1105,6 @@ <h3>
10981105
userButton.classList.toggle('open');
10991106
userAccount.classList.toggle('open');
11001107
});
1101-
const _stopPropagation = e => {
1102-
e.stopPropagation();
1103-
};
1104-
userAccount.addEventListener('mousedown', _stopPropagation);
1105-
userAccount.addEventListener('dblclick', _stopPropagation);
11061108
</script>
11071109
</body>
11081110
</html>

0 commit comments

Comments
 (0)