test multi touch
This commit is contained in:
parent
06f7bd0ed9
commit
4b86ec3eaa
@ -87,6 +87,10 @@ var whiteboard = {
|
||||
return;
|
||||
}
|
||||
|
||||
if(e.touches.length > 1) {
|
||||
return; // if more than one fingers are touching the screen, dont draw
|
||||
}
|
||||
|
||||
_this.drawFlag = true;
|
||||
_this.prevX = (e.offsetX || e.pageX - $(e.target).offset().left) + 1;
|
||||
_this.prevY = (e.offsetY || e.pageY - $(e.target).offset().top) + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user