Skip to content

Instantly share code, notes, and snippets.

@nola
Created November 25, 2013 21:32
Show Gist options
  • Select an option

  • Save nola/7649251 to your computer and use it in GitHub Desktop.

Select an option

Save nola/7649251 to your computer and use it in GitHub Desktop.
Console log mouse position clientY shows the Y value in pixels The second one shows event data for mousemove
$(window).on("mousemove", function (e) { console.log(e.clientY) });
$(window).on("mousemove", function (e) { console.log(e) });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment