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

Sort handler triggered twice on mobile #32

Closed
benoitdevrieze opened this issue Oct 23, 2015 · 1 comment
Closed

Sort handler triggered twice on mobile #32

benoitdevrieze opened this issue Oct 23, 2015 · 1 comment

Comments

@benoitdevrieze
Copy link

When tapping on the header of a sortable column on a mobile device (Android, Chrome, latest) the sort handler is triggered twice resulting in the same sorting direction. On slow devices it is visible that the sorting happens twice. This makes that the user is not able to switch the sorting direction. The issue is most probably caused by differences in touch input api's of different browsers.

@zackbloom
Copy link
Contributor

I can imagine this happening if the touchstart and click events are considered seperate, causing this code not work: https://github.com/HubSpot/sortable/blob/master/coffee/sortable.coffee#L41-L44

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

No branches or pull requests

2 participants