Skip to content

Instantly share code, notes, and snippets.

@crazypixel
Created September 8, 2019 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazypixel/a7669e4a03709c099abf299f95544e41 to your computer and use it in GitHub Desktop.
Save crazypixel/a7669e4a03709c099abf299f95544e41 to your computer and use it in GitHub Desktop.
translation
const translation = {
x: clientX - state.origin.x,
y: clientY - state.origin.y
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment