Skip to content

Fix touch events being lost by listening to event.target on mobile #586

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

Merged
merged 1 commit into from
Mar 19, 2021

Conversation

clauderic
Copy link
Owner

@clauderic clauderic commented Aug 21, 2019

This PR is based off of #532. Resolves #578, #440 and #9.

I believe this addresses #440 and #9.

The underlying issue with dragging on mobile seems to be related to this issue. This pull request implements this proposed solution, by simply listening to event.target if the event is a mobile event (ie event.touches).

This works in my tests, but obviously open to discussion.

@clauderic clauderic force-pushed the fix-mobile-listener-node-issue branch from 48dfb5e to e83cfe6 Compare August 22, 2019 15:56
@hownowbrowncow
Copy link

@clauderic do you have any plans of merging this in soon? i've tested out the commit and it does seem to resolve the issue with SortableHandle. If there is something else you need to move this forward i'd be glad to contribute something to the package.

@taejs
Copy link

taejs commented Aug 3, 2020

@clauderic Hi I wonder why this PR was not merged yet. any problem?

@j-rp
Copy link

j-rp commented Sep 26, 2020

@clauderic Seconding this one, please let us know if you're alive :)

@harryrein3
Copy link

Ping here, please let us know if you can merge this in :)

@clauderic clauderic merged commit 0049d0d into master Mar 19, 2021
@clauderic clauderic deleted the fix-mobile-listener-node-issue branch March 19, 2021 02:23
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.

dragHandle issue on mobile
6 participants