Skip to content

Touch screen laptop chrome Cannot read property '0' of undefined #21

@mitermayer

Description

@mitermayer

When attempting to resize on the demo page with chrome browser on a laptop that has support for touch screen i get the following error:

I get the error

Uncaught TypeError: Cannot read property '0' of undefined

function getControlPosition(e) {
      var position = !isTouchDevice ? e : e.touches[0];
      return {
        clientX: position.clientX,
        clientY: position.clientY
      }
}

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