I\'m trying to draw a 2D line using mouse events. Say, when you mouse down and mouse move you can see the line drawing. But while I move the mouse the 2D line is creating ma