Skip to content

Instantly share code, notes, and snippets.

@drnikki
Created May 29, 2014 20:47
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 drnikki/1f0cd72d69988e785f23 to your computer and use it in GitHub Desktop.
Save drnikki/1f0cd72d69988e785f23 to your computer and use it in GitHub Desktop.
canvas.on('touchend', function(options) {
console.log('touch');
// only if we're not selecting other objects
if (typeof options.target !== 'object' ) {
drawRect(options.e.clientX, options.e.clientY, 'start');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment