Skip to content

Commit 5ed8809

Browse files
Merge pull request #15 from VoloshchenkoAl/rename-variables
refactor: 🚩 test commit
2 parents fd5095a + cff3350 commit 5ed8809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ const update = () => {
1818
requestAnimationFrame(update);
1919

2020
const highlightButtons = document.querySelectorAll('[data-pointer-type="highlight"]');
21-
const liftButtons = document.querySelectorAll('[data-pointer-type="lift"]');
22-
const contentBlocks = document.querySelectorAll('[data-pointer-type="content"]');
2321

2422
highlightButtons.forEach((highlightButton) => {
2523
highlightButton.addEventListener('mouseenter', (e) => {
@@ -33,6 +31,7 @@ highlightButtons.forEach((highlightButton) => {
3331
});
3432
});
3533

34+
const liftButtons = document.querySelectorAll('[data-pointer-type="lift"]');
3635
liftButtons.forEach((liftButton) => {
3736
liftButton.addEventListener('mouseenter', (e) => {
3837
const element = e.currentTarget as HTMLElement;
@@ -45,6 +44,7 @@ liftButtons.forEach((liftButton) => {
4544
});
4645
});
4746

47+
const contentBlocks = document.querySelectorAll('[data-pointer-type="content"]');
4848
contentBlocks.forEach(contentBlock => {
4949
contentBlock.addEventListener('mouseenter', (e) => {
5050
const element = e.currentTarget as HTMLElement;

0 commit comments

Comments
 (0)