i'm assuming the eraser only triggers a touch event in the case of a web browser, so i'm not sure if there is anything i can do to change that but i'll look into it!
I think you have to use pointer events to detect the eraser -- e.button should be 5 for pointerdown events. I'm not sure how hard it is to use pointer events when available (currently only on IE/Edge, it looks like).