Fixed the issue with the brush event. It now waits to redraw points only after mouse events are over.