MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / mousemove

Function mousemove

assets/js/unsub_page.js:17–27  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

15window.addEventListener("touchmove", touchmove);
16
17function mousemove(e) {
18 cursorPos = {
19 x: e.clientX,
20 y: e.clientY
21 };
22 if (!clicked) {
23 eyes.forEach(function(el) {
24 eyeFollow.init(el);
25 })
26 }
27}
28function touchmove(e) {
29 cursorPos = {
30 x: e.targetTouches[0].offsetX,

Callers

nothing calls this directly

Calls 1

initMethod · 0.80

Tested by

no test coverage detected