Created
May 29, 2014 20:47
-
-
Save drnikki/1f0cd72d69988e785f23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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