Added functionality for painting with a click. Does not appear to affect painting and dragging.