Skip to content

How to deal with touchstart - touchmove - touchend ? #66

Closed
@Kamoba

Description

@Kamoba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions