Skip to content

touchmove event coordinates #96

@aavogt

Description

@aavogt

function Trigger(e) {

Following https://stackoverflow.com/questions/4780837 , I can get touchstart and touchmove events with coordinates and touchend without coordinates provided I add the following to Trigger().

if ((e.type == "touchmove" || e.type == "touchstart") && e.originalEvent.touches[0].pageX != undefined && e.originalEvent.touches[0].pageY != undefined) {
   o.pageXY = [e.originalEvent.touches[0].pageX, e.originalEvent.touches[0].pageY]
}

I am not sure why I lose the mousemove events if I leave out the (e.type == "touchmove" || e.type == "touchstart")

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