I’ve created a paint page for drawing/coloring in my app. But im having some difficulties getting the -eraser- button to function properly. If i paint something on the canvas and then choose the eraser button and tries to erase something on the canvas, it is not working. The eraser button is only acting as a pen/brush tool and “erasing” with the last used color. But if i go to the previous page and go back again to the painting page, the eraser is working.
I have to go trough the procedure again if i choose another color after erasing.
Do someone know what’s causing this to happen?