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