Skip to content

Conversation

@bastbnl
Copy link

@bastbnl bastbnl commented Jan 25, 2016

See #217

// Seen on Chrome 47.0.2526.111
var clientX = lastMouseEvent.clientX;
if (angular.isUndefined(lastMouseEvent.clientX))
clientX = lastMouseEvent.touches[0].clientX;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

touches is not defined on event itself, it is defined on originalEvent - use lastMouseEvent.originalEvenet.touches[0]
or rather - inject ngDraggable and use ngDraggable.inputEvent(lastMouseEvent).clientY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants