Skip to content

Commit c665ba1

Browse files
Change onclick back to onmousedown
Co-authored-by: TheEntropyShard <[email protected]>
1 parent 6452e80 commit c665ba1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ function fireEvents() {
173173
let shaking = false;
174174
let counter = 0; // TODO: DONT FORGET TO SET TO 0 ON RELEASE!!!
175175

176-
// TODO: change it to onmousedown (it stopped working after separating button and label)
177-
clickMe.onclick = () => {
176+
clickMeWrapper.onmousedown = (e) => {
178177
counter += 1;
179178
popupText.innerText = counter + "🍑💨";
180179
fireEvents();

0 commit comments

Comments
 (0)