Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolls when running on a touch based device #218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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