ngDraggable icon indicating copy to clipboard operation
ngDraggable copied to clipboard

Cannot read property of touches error

Open bargitta opened this issue 10 years ago • 3 comments

The example.html does not work, I find error in this line that originalEvent is undefined

 else if (angular.isDefined(event.originalEvent.touches)) 

bargitta avatar Jun 02 '15 09:06 bargitta

:+1:

lookfirst avatar Jun 03 '15 03:06 lookfirst

@justinmorant I think your PR has broken this are you able to submit a fix?

fatlinesofcode avatar Jun 03 '15 03:06 fatlinesofcode

@fatlinesofcode just submitted a new pull request with a fix for this defect. The code now checking if event.originalEvent is defined as well as event.originalEvent.touches so it does not throw an error.

justinmorant avatar Jun 04 '15 00:06 justinmorant