I'm using it for drawing with mouse (draw.polyline()) on a TouchDevice (Window tablet) and it's not working, not geting the event mousedown and mouseup, so i replace them with touchstart and touchend but gor error:
Uncaught TypeError: SVGPoint.x setter: Value being assigned is not a finite floating-point value.
Code:
draw.on('mousedown', event => {
const shape = getDrawObject();
shapes[index] = shape;
shape.draw(event);
});
but work on pc.