pixels are also drawn while dragging