disable events of canvas
simplify calculations of line and canvas position