Currently, drag supports filling only. We need to implement erasing as well. We can do this using one of the following methods:
- Use the action on the first pixel i.e. if the first pixel was filled the dragging fills and vice-versa.
- Alternatively, we can use the dedicated mode option to fill or erase.
Currently, drag supports filling only. We need to implement erasing as well. We can do this using one of the following methods: