Commit 5ff1574d by doszhang

dos

parent 0a67c238
......@@ -106,22 +106,20 @@
var mouseY = evt.pageY - coverPos.top - pageScrollTop;
defineX = mouseX;
defineX = mouseY;
var that = this;
if(!timerStatus)
{
timer = setInterval(fillCircle,1);
timer = setInterval(function() {
that.ctx.beginPath();
that.ctx.fillStyle = '#FFFFFF';
that.ctx.globalCompositeOperation = "destination-out";
that.ctx.arc(defineX, defineX, 10, 0, 2 * Math.PI);
that.ctx.fill();
},1);
}
};
function _fillCircle()
{
this.ctx.beginPath();
this.ctx.fillStyle = '#FFFFFF';
this.ctx.globalCompositeOperation = "destination-out";
this.ctx.arc(defineX, defineX, 10, 0, 2 * Math.PI);
this.ctx.fill();
}
/**
* touchend/mouseup event handler
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment