prevent dragging the screen while drawing on canvas