Prevent drawing when click color buttons.