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 a9a31f0 commit 4aa09afCopy full SHA for 4aa09af
Scratch card effect/script.js
@@ -1,4 +1,4 @@
1
-document.addEventListener('pointermove', function (e) {
+const pointerHandler = function (e) {
2
const body = document.querySelector('body');
3
const bubbles = document.createElement('span');
4
@@ -7,4 +7,8 @@ document.addEventListener('pointermove', function (e) {
7
8
body.appendChild(bubbles);
9
10
-})
+}
11
+
12
+// document.addEventListener('pointermove', pointerHandler)
13
+document.addEventListener('mousemove', pointerHandler)
14
+document.addEventListener('touchmove', pointerHandler)
0 commit comments