Removed debugging logs from event callbacks.

This commit is contained in:
juliandescottes 2012-09-06 00:45:49 +02:00
parent a3d313dda7
commit f723d4bbaf

View file

@ -191,7 +191,6 @@ $.namespace("pskl");
},
onMousedown : function (event) {
console.log("onMousedown");
isClicked = true;
if(event.button == 2) { // right click
@ -210,7 +209,6 @@ $.namespace("pskl");
},
onMousemove : function (event) {
console.log("onMousemove");
var currentTime = new Date().getTime();
// Throttling of the mousemove event:
if ((currentTime - previousMousemoveTime) > 40 ) {
@ -233,7 +231,6 @@ $.namespace("pskl");
},
onMouseup : function (event) {
console.log("onMouseup");
if(isClicked || isRightClicked) {
// A mouse button was clicked on the drawing canvas before this mouseup event,
// the user was probably drawing on the canvas.