MCPcopy Create free account
hub / github.com/codrops/OnScrollShapeMorph / getCursorPos

Function getCursorPos

js/utils.js:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 * @param {Event} ev - mousemove event
25 */
26const getCursorPos = ev => {
27 return {
28 x : ev.clientX,
29 y : ev.clientY
30 };
31 };
32
33/**
34 * Map number x from range [a, b] to [c, d]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected